Enum PredefinedLayout
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
預先定義版面配置預先定義的版面配置。這些是簡報中常見的版面配置。不過,這些版面配置可能已遭到刪除,或並非所用主題的一部分,因此無法保證這些版面配置會出現在目前的主版中。此外,每個版面配置的預留位置可能已變更。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SlidesApp.PredefinedLayout.BLANK
。
屬性
屬性 | 類型 | 說明 |
UNSUPPORTED | Enum | 不支援的版面配置。 |
BLANK | Enum | 空白版面配置,不含預留位置。 |
CAPTION_ONLY | Enum | 底部有說明文字的版面配置。 |
TITLE | Enum | 含有標題和副標題的版面配置。 |
TITLE_AND_BODY | Enum | 含有標題和內文的版面配置。 |
TITLE_AND_TWO_COLUMNS | Enum | 含標題和兩欄的版面配置。 |
TITLE_ONLY | Enum | 只有標題的版面配置。 |
SECTION_HEADER | Enum | 含有區塊標題的版面配置。 |
SECTION_TITLE_AND_DESCRIPTION | Enum | 版面配置:一側顯示標題和副標題,另一側顯示說明。 |
ONE_COLUMN_TEXT | Enum | 版面配置包含一個標題和一個內文,並排列在單一欄中。 |
MAIN_POINT | Enum | 含有主要重點的版面配置。 |
BIG_NUMBER | Enum | 包含大型數字標題的版面配置。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003ePredefined layouts are standard presentation layouts but may not be available in all master slides or themes.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access predefined layouts using the syntax \u003ccode\u003eSlidesApp.PredefinedLayout.[LayoutName]\u003c/code\u003e, such as \u003ccode\u003eSlidesApp.PredefinedLayout.BLANK\u003c/code\u003e for a blank layout.\u003c/p\u003e\n"],["\u003cp\u003eThere are various predefined layouts available, including \u003ccode\u003eBLANK\u003c/code\u003e, \u003ccode\u003eCAPTION_ONLY\u003c/code\u003e, \u003ccode\u003eTITLE\u003c/code\u003e, \u003ccode\u003eTITLE_AND_BODY\u003c/code\u003e, \u003ccode\u003eTITLE_AND_TWO_COLUMNS\u003c/code\u003e, \u003ccode\u003eTITLE_ONLY\u003c/code\u003e, \u003ccode\u003eSECTION_HEADER\u003c/code\u003e, \u003ccode\u003eSECTION_TITLE_AND_DESCRIPTION\u003c/code\u003e, \u003ccode\u003eONE_COLUMN_TEXT\u003c/code\u003e, \u003ccode\u003eMAIN_POINT\u003c/code\u003e, and \u003ccode\u003eBIG_NUMBER\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAlthough predefined, the layout's placeholders may have been modified from their default settings.\u003c/p\u003e\n"]]],["Predefined layouts, common in presentations, may not be available due to deletion or theme changes. Placeholders within layouts can also be modified. Access predefined layouts via their parent class, name, and property (e.g., `SlidesApp.PredefinedLayout.BLANK`). Supported layouts include `BLANK`, `CAPTION_ONLY`, `TITLE`, `TITLE_AND_BODY`, `TITLE_AND_TWO_COLUMNS`, `TITLE_ONLY`, `SECTION_HEADER`, `SECTION_TITLE_AND_DESCRIPTION`, `ONE_COLUMN_TEXT`, `MAIN_POINT`, and `BIG_NUMBER`; `UNSUPPORTED` is also listed.\n"],null,["# Enum PredefinedLayout\n\nPredefinedLayout\n\nPredefined layouts. These are commonly found layouts in presentations. However, there is no\nguarantee that these layouts are present in the current master as they could have been deleted or\nnot part of the used theme. Additionally, the placeholders on each layout may have been changed.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.PredefinedLayout.BLANK`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------------------------|--------|----------------------------------------------------------------------------|\n| `UNSUPPORTED` | `Enum` | A layout that is not supported. |\n| `BLANK` | `Enum` | Blank layout, with no placeholders. |\n| `CAPTION_ONLY` | `Enum` | Layout with a caption at the bottom. |\n| `TITLE` | `Enum` | Layout with a title and a subtitle. |\n| `TITLE_AND_BODY` | `Enum` | Layout with a title and body. |\n| `TITLE_AND_TWO_COLUMNS` | `Enum` | Layout with a title and two columns. |\n| `TITLE_ONLY` | `Enum` | Layout with only a title. |\n| `SECTION_HEADER` | `Enum` | Layout with a section title. |\n| `SECTION_TITLE_AND_DESCRIPTION` | `Enum` | Layout with a title and subtitle on one side and description on the other. |\n| `ONE_COLUMN_TEXT` | `Enum` | Layout with one title and one body, arranged in a single column. |\n| `MAIN_POINT` | `Enum` | Layout with a main point. |\n| `BIG_NUMBER` | `Enum` | Layout with a big number heading. |"]]