首页/ 接口索引/ 枚举值速查

Outline.LineCaps

0 = 平头 / 1 = 圆头 / 2 = 方头。

签名

Outline.LineCaps

说明

0 = 平头 / 1 = 圆头 / 2 = 方头。

Python 示例(可直接运行)

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

shape.Outline.LineCaps = 1          # 0平头 1圆头 2方头
print("端点已设为圆头")

关于本类:枚举值速查

Python 里没有常量名,只能写数字。下面这些是常用且已核对过的。

同类其他接口