应用于整个段落的文本样式。
如果相应的 Text 跨越多个段落,并且这些段落对于所调用的读取方法具有不同的值,则此类中的读取方法会返回 null。为避免这种情况,请使用 Paragraph.getRange() 方法返回的 Text 查询段落样式。
如果您使用的方法会修改文字在形状中的排布方式,则应用于段落样式的任何自动调整设置都会停用。
方法
详细文档
get Indent End()
get Indent First Line()
get Indent Start()
get Line Spacing()
返回行间距;如果给定文本具有多种段落样式,则返回 null。
此值表示行间距,以正常行间距的百分比表示。 正常表示为 100.0。
返回
Number|null
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Paragraph Alignment()
返回 Text 中段落的 Paragraph,如果给定文本具有多种段落样式,则返回 null。
返回
Paragraph
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
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。
返回
Spacing
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get Text Direction()
返回 Text 中段落的 Text,如果给定文本具有多种段落样式,则返回 null。
返回
Text
授权
使用此方法的脚本需要获得以下一项或多项范围的授权:
-
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