首页/ 接口索引/ 描边

shape.Outline.Type

描边类型。0 = 无描边。

签名

shape.Outline.Type

说明

描边类型。0 = 无描边。

Python 示例(可直接运行)

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

print("描边类型:", o.Type)        # 0 = 无描边
if o.Type == 0:
    print("当前没有描边")

# o.Type = 0                       # 强制去掉描边

关于本类:描边

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

同类其他接口