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