提供意見
Class ParagraphStyle
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
內容詳盡的說明文件
get Indent End()
以點為單位,傳回 Text Range
中段落的文字結尾縮排,如果指定文字有多種段落樣式,則會傳回 null
。
文字結尾對應的側邊取決於目前的文字方向。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Indent First Line()
以點為單位,傳回 Text Range
中段落首行縮排的值。如果指定文字有多種段落樣式,則傳回 null
。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Indent Start()
以點為單位,傳回 Text Range
中段落的文字開始縮排,如果指定文字有多種段落樣式,則傳回 null
。
文字開頭對應的側邊取決於目前的文字方向。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Line Spacing()
傳回行距,如果指定文字有多個段落樣式,則傳回 null
。
這個值對應於行與行之間的間距,以正常值的百分比表示。正常值會以 100.0 表示。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Paragraph Alignment()
傳回 Text Range
中段落的 Paragraph Alignment
,如果指定文字有多種段落樣式,則傳回 null
。
回攻員
Paragraph Alignment
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Space Above()
以點為單位,傳回 Text Range
中段落上方的額外空格,如果指定文字有多個段落樣式,則傳回 null
。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Space Below()
傳回 Text Range
中段落下方的額外空白 (以點為單位),如果指定文字有多個段落樣式,則傳回 null
。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Spacing Mode()
傳回 Text Range
中段落的 Spacing Mode
,如果指定文字有多種段落樣式,則傳回 null
。
回攻員
Spacing Mode
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
get Text Direction()
傳回 Text Range
中段落的 Text Direction
,如果指定文字有多種段落樣式,則傳回 null
。
回攻員
Text Direction
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Indent End(indent)
以點為單位,設定 Text Range
中段落的文字結尾縮排。
文字結尾對應的側邊取決於目前的文字方向。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Indent First Line(indent)
以點為單位,設定 Text Range
中段落首行的縮排。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Indent Start(indent)
設定 Text Range
中段落的文字起始縮排點數。
文字開頭對應的側邊取決於目前的文字方向。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Line Spacing(spacing)
設定行距。
這個值對應於行與行之間的間距,以正常值的百分比表示。正常值會以 100.0 表示。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Paragraph Alignment(alignment)
設定 Text Range
中段落的 Paragraph Alignment
。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Space Above(space)
以點為單位,設定 Text Range
中段落上方的額外空格。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Space Below(space)
以點為單位,設定 Text Range
中段落下方的額外空白。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Spacing Mode(mode)
可設定 Text Range
中段落的 Spacing Mode
。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
set Text Direction(direction)
可設定 Text Range
中段落的 Text Direction
。
參數
回攻員
Paragraph Style
授權
使用這個方法的腳本需要具備下列一或多個範圍 的授權:
https://www.googleapis.com/auth/presentations.currentonly
https://www.googleapis.com/auth/presentations
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eParagraphStyle\u003c/code\u003e encompasses the styles applied to entire paragraphs within Google Slides.\u003c/p\u003e\n"],["\u003cp\u003eWhen reading paragraph styles across multiple paragraphs, methods return \u003ccode\u003enull\u003c/code\u003e if the paragraphs have differing style values; use \u003ccode\u003eParagraph.getRange()\u003c/code\u003e for consistent results.\u003c/p\u003e\n"],["\u003cp\u003eAutofit settings are deactivated if methods altering text fitting within a shape are employed.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides methods to get and set various paragraph attributes, such as indentation, line spacing, alignment, spacing above/below, spacing mode, and text direction.\u003c/p\u003e\n"],["\u003cp\u003eThese methods require authorization with specific scopes like \u003ccode\u003ehttps://www.googleapis.com/auth/presentations.currentonly\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/presentations\u003c/code\u003e to function correctly.\u003c/p\u003e\n"]]],[],null,[]]