主题
Enabled (属性)
如果启用对象,则为 True。bool 类型,可读写。
示例
python
#本示例将第一张工作表的第一个形状设置成禁用
def test():
shape = Worksheets.Item(1).Shapes.Item(1)
shape.ControlFormat.Enabled = False
python
#本示例显示活动工作表的第二个形状(组合框)是否启用对象
def test():
shape = ActiveSheet.Shapes.Item(2)
print(shape.ControlFormat.Enabled)