Skip to content
本页内容

Shape (属性)

返回一个 Shape 对象,它代表连接到指定批注的形状。

说明

确保批注未被隐藏。在“ 审阅 ”选项卡上,选择“ 批注>显示所有批注”。

示例

python
#本示例选定活动工作表上的第二条批注
def test():
    Application.ActiveSheet.Comments.Item(2).Shape.Select()
python
#本示例显示活动工作表上第三条批注的形状的宽度
def test():
    print(Application.ActiveSheet.Comments.Item(3).Shape.Width)