Enum PredefinedLayout
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Bố cục được xác định trước
Bố cục được xác định trước. Đây là những bố cục thường thấy trong bản trình bày. Tuy nhiên, không có gì đảm bảo rằng các bố cục này có trong tệp chính hiện tại vì chúng có thể đã bị xoá hoặc không phải là một phần của giao diện được sử dụng. Ngoài ra, trình giữ chỗ trên mỗi bố cục có thể đã thay đổi.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ:
SlidesApp.PredefinedLayout.BLANK
.
Thuộc tính
Thuộc tính | Loại | Mô tả |
UNSUPPORTED | Enum | Bố cục không được hỗ trợ. |
BLANK | Enum | Bố cục trống, không có phần giữ chỗ. |
CAPTION_ONLY | Enum | Bố cục có chú thích ở dưới cùng. |
TITLE | Enum | Bố cục có tiêu đề và phụ đề. |
TITLE_AND_BODY | Enum | Bố cục có tiêu đề và nội dung. |
TITLE_AND_TWO_COLUMNS | Enum | Bố cục có tiêu đề và hai cột. |
TITLE_ONLY | Enum | Bố cục chỉ có tiêu đề. |
SECTION_HEADER | Enum | Bố cục có tiêu đề mục. |
SECTION_TITLE_AND_DESCRIPTION | Enum | Bố cục có tiêu đề và phụ đề ở một bên và nội dung mô tả ở bên còn lại. |
ONE_COLUMN_TEXT | Enum | Bố cục có một tiêu đề và một nội dung, được sắp xếp trong một cột. |
MAIN_POINT | Enum | Bố cục có một điểm chính. |
BIG_NUMBER | Enum | Bố cục có tiêu đề số lớn. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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. |"]]