首页/ 接口索引/ 描边

shape.Outline.Color.HexValue

描边颜色十六进制,读写。

签名

shape.Outline.Color.HexValue

说明

描边颜色十六进制,读写。

Python 示例(可直接运行)

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

hex_now = (shape.Outline.Color.HexValue or "").upper()
print("描边色:", hex_now)

if hex_now == "#000000":
    print("黑色描边")

# shape.Outline.Color.HexValue = "#1A4A72"     # 也可以直接写 hex

关于本类:描边

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

同类其他接口