首页/ 接口索引/ Shape 外观属性

shape.Outline

描边对象,见「Outline 描边」一节。

签名

shape.Outline

说明

描边对象,见「Outline 描边」一节。

Python 示例(可直接运行)

依赖 pywin32。示例假定 app / doc / page / layer 已就绪。 见「连接与初始化」
Python
shape = app.ActiveSelectionRange(1)

print("线宽:", shape.Outline.Width)       # 单位同文档单位
print("是否有描边:", shape.Outline.Width > 0)

关于本类:Shape 外观属性

填充、描边、透明度、效果的入口,具体用法见后面 Fill / Outline 两节。

同类其他接口