首页/ 接口索引/ 描边

shape.Outline.Style

虚线样式(实线 / 各种虚线)。

签名

shape.Outline.Style

说明

虚线样式(实线 / 各种虚线)。

Python 示例(可直接运行)

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

shape.Outline.Style = 1            # 线型(实线/虚线,以 cdrOutlineStyle 为准)
print("线型代号:", shape.Outline.Style)

shape.Outline.Width = 1 / 25.4     # 线型要配合线宽才看得出来

关于本类:描边

宽度单位跟 doc.Unit(英寸),颜色与端点样式单独设。

同类其他接口