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