套用至整段文字的樣式。
如果對應的 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)
以點為單位,設定 Text 中段落的文字結尾縮排。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
indent | Number | 要設定的縮排。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Indent First Line(indent)
以點為單位,設定 Text 中段落首行的縮排。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
indent | Number | 要設定的縮排。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Indent Start(indent)
以點為單位,設定 Text 中段落的文字起始縮排。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
indent | Number | 要設定的縮排。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Line Spacing(spacing)
設定行距。
這個值對應於行間間距,以正常間距的百分比表示。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
spacing | Number | 要設定的間距。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Paragraph Alignment(alignment)
設定 Text 中段落的 Paragraph。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
alignment | Paragraph | 要設定的對齊方式。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Space Above(space)
以點為單位,設定 Text 中段落上方的額外空間。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
space | Number | 要設定的空間。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Space Below(space)
以點為單位,設定 Text 中段落下方的額外空間。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
space | Number | 下方空間可供設定。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Spacing Mode(mode)
設定 Text 中段落的 Spacing。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
mode | Spacing | 要設定的間距模式。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set Text Direction(direction)
設定 Text 中段落的 Text。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
direction | Text | 要設定的文字方向。 |
回攻員
Paragraph — This Paragraph, for chaining.
授權
使用這個方法的指令碼需要透過下列一或多個範圍授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations