主题
Item (方法)
从集合中返回一个对象。
参数
属性 | 数据类型 | 必填 | 说明 |
---|
返回值
TableStyleElement
示例
python
#本示例将第一张工作表上第一张列表的表样式中第一列的字体加粗
def test():
listObj = Application.Worksheets.Item(1).ListObjects.Item(1)
tableStyleElement = listObj.TableStyle.TableStyleElements.Item(xlFirstColumn)
tableStyleElement.Font.Bold = True
python
#本示例显示活动工作表上第一张列表的表样式的标题行是否具有格式设置
def test():
listObj = ActiveSheet.ListObjects.Item(1)
print(listObj.TableStyle.TableStyleElements.Item(xlHeaderRow).HasFormat)