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

shape.Text.Story.LineSpacing

行距,段落文本调这个。

签名

shape.Text.Story.LineSpacing

说明

行距,段落文本调这个。

Python 示例(可直接运行)

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

shape.Text.Story.LineSpacing = 120   # 行距(百分比),段落文本调这个
print("行距:", shape.Text.Story.LineSpacing)

关于本类:Text 文本对象

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

同类其他接口