应用于整个段落的文本样式。
如果相应的 Text 跨多个段落,并且这些段落对被调用的读取方法有不同的值,则此类中的读取方法会返回 null。为避免这种情况,请使用 Paragraph.getRange() 方法返回的 Text 查询段落样式。
如果您使用编辑文本在形状中放置方式的方法,则应用于段落样式的所有自动调整设置都会停用。
方法
详细文档
get Indent End()
get Indent First Line()
get Indent Start()
get Line Spacing()
返回行间距,如果给定文本具有多种段落样式,则返回 null。
此值与行间距相对应,以正常行距的百分比表示。正常值表示为 100.0。
返回
Number
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Paragraph Alignment()
返回 Text 中的段落的 Paragraph,如果给定文本有多种段落样式,则返回 null。
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Space Above()
get Space Below()
get Spacing Mode()
返回 Text 中的段落的 Spacing,如果给定文本有多个段落样式,则返回 null。
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Text Direction()
返回 Text 中的段落的 Text,如果给定文本有多个段落样式,则返回 null。
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Indent End(indent)
set Indent First Line(indent)
set Indent Start(indent)
set Line Spacing(spacing)
设置行间距。
此值与行间距相对应,以正常行间距的百分比表示。正常值表示为 100.0。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
spacing | Number |
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Paragraph Alignment(alignment)
设置 Text 中段落的 Paragraph。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
alignment | Paragraph |
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Space Above(space)
set Space Below(space)
set Spacing Mode(mode)
为 Text 中的段落设置 Spacing。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
mode | Spacing |
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Text Direction(direction)
为 Text 中的段落设置 Text。
参数
| 名称 | 类型 | 说明 |
|---|---|---|
direction | Text |
返回
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations