首页/ 接口索引/ Text 文本对象

shape.Text.Story.WordSpacing

词距(百分比),英文标题用。

签名

shape.Text.Story.WordSpacing

说明

词距(百分比),英文标题用。

Python 示例(可直接运行)

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

shape.Text.Story.WordSpacing = 120   # 词距(百分比),英文标题常用
print("词距:", shape.Text.Story.WordSpacing)

关于本类:Text 文本对象

文字接口分两层:Shape.Text 是入口,真正读写字体字号要下到 Story.Characters.All。

同类其他接口