套用至整個段落的文字樣式。
如果相應的 Text
跨越多個段落,且這些段落在呼叫的讀取方法中具有不同的值,則這個類別中的讀取方法會傳回 null
。為避免這種情況,請使用 Paragraph.getRange()
方法傳回的 Text
查詢段落樣式。
如果您使用編輯文字在形狀中套用方式的方法,則會停用套用至段落樣式的任何自動調整設定。
方法
內容詳盡的說明文件
getIndentEnd()
getIndentFirstLine()
getIndentStart()
getLineSpacing()
傳回行距,如果指定文字有多個段落樣式,則傳回 null
。
這個值對應於行與行之間的間距,以正常值的百分比表示。正常值會以 100.0 表示。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getParagraphAlignment()
傳回 Text
中段落的 Paragraph
,如果指定文字有多種段落樣式,則傳回 null
。
回攻員
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getSpaceAbove()
getSpaceBelow()
getSpacingMode()
傳回 Text
中段落的 Spacing
,如果指定文字有多種段落樣式,則傳回 null
。
回攻員
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getTextDirection()
傳回 Text
中段落的 Text
,如果指定文字有多種段落樣式,則傳回 null
。
回攻員
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setIndentEnd(indent)
setIndentFirstLine(indent)
setIndentStart(indent)
setLineSpacing(spacing)
設定行距。
這個值對應於行與行之間的間距,以正常值的百分比表示。正常值會以 100.0 表示。
參數
名稱 | 類型 | 說明 |
---|---|---|
spacing | Number |
回攻員
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setParagraphAlignment(alignment)
設定 Text
中段落的 Paragraph
。
參數
名稱 | 類型 | 說明 |
---|---|---|
alignment | Paragraph |
回攻員
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setSpaceAbove(space)
setSpaceBelow(space)
setSpacingMode(mode)
可設定 Text
中段落的 Spacing
。
參數
名稱 | 類型 | 說明 |
---|---|---|
mode | Spacing |
回攻員
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
setTextDirection(direction)
可設定 Text
中段落的 Text
。
參數
名稱 | 類型 | 說明 |
---|---|---|
direction | Text |
回攻員
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations