套用至整個段落的文字樣式。
如果相應的 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