Enum PlaceholderType
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.
PlaceholderType
Các loại phần giữ chỗ. Nhiều loại phần giữ chỗ này tương ứng với mã phần giữ chỗ theo tiêu chuẩn ECMA-376. Bạn có thể xem thêm thông tin về các hình dạng đó trong phần mô tả loại "ST_PlaceholderType" trong mục 19.7.10 của "Định dạng tệp Office Open XML – Kiến thức cơ bản và tài liệu tham khảo về ngôn ngữ đánh dấu", phần 1 của ECMA-376 phiên bản thứ 5.
Để 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.PlaceholderType.BODY
.
Thuộc tính
Thuộc tính | Loại | Mô tả |
UNSUPPORTED | Enum | Loại phần giữ chỗ không được hỗ trợ. |
NONE | Enum | Không phải là phần giữ chỗ. |
BODY | Enum | Văn bản nội dung. |
CHART | Enum | Biểu đồ hoặc đồ thị. |
CLIP_ART | Enum | Hình ảnh hình mẫu. |
CENTERED_TITLE | Enum | Tiêu đề ở giữa. |
DIAGRAM | Enum | Sơ đồ. |
DATE_AND_TIME | Enum | Ngày và giờ. |
FOOTER | Enum | Văn bản chân trang. |
HEADER | Enum | Văn bản tiêu đề. |
MEDIA | Enum | Đa phương tiện. |
OBJECT | Enum | Mọi loại nội dung. |
PICTURE | Enum | Hình ảnh. |
SLIDE_NUMBER | Enum | Số trang trình bày. |
SUBTITLE | Enum | Phụ đề. |
TABLE | Enum | Bảng. |
TITLE | Enum | Tiêu đề trang trình bày. |
SLIDE_IMAGE | Enum | Hình ảnh trang trình bày. |
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\u003ePlaceholderType is used to specify the type of content a placeholder in Google Slides can hold, like text, images, or charts.\u003c/p\u003e\n"],["\u003cp\u003eThese types are based on the ECMA-376 standard for Office Open XML file formats, with more details available in the standard's documentation.\u003c/p\u003e\n"],["\u003cp\u003eTo use a PlaceholderType, refer to its parent class (SlidesApp), name (PlaceholderType), and specific property (e.g., BODY for body text).\u003c/p\u003e\n"],["\u003cp\u003eA comprehensive list of PlaceholderTypes is provided, including common types like TITLE, BODY, CHART, and more specific ones like DATE_AND_TIME or SLIDE_NUMBER.\u003c/p\u003e\n"],["\u003cp\u003eIf a placeholder type isn't recognized, it falls under the UNSUPPORTED or NONE types.\u003c/p\u003e\n"]]],["Placeholder types, corresponding to ECMA-376 standard IDs, are accessed via `SlidesApp.PlaceholderType.PROPERTY`. Key types include: `UNSUPPORTED`, `NONE`, `BODY` (text), `CHART`, `CLIP_ART`, `CENTERED_TITLE`, `DIAGRAM`, `DATE_AND_TIME`, `FOOTER`, `HEADER`, `MEDIA`, `OBJECT`, `PICTURE`, `SLIDE_NUMBER`, `SUBTITLE`, `TABLE`, `TITLE`, and `SLIDE_IMAGE`. Each represents a specific content category, like text, visuals, or metadata, within a slide. Refer to the standard for more shape details.\n"],null,["# Enum PlaceholderType\n\nPlaceholderType\n\nThe placeholder types. Many of these placeholder types correspond to placeholder IDs from the\nECMA-376 standard. More information on those shapes can be found in the description of the\n\"ST_PlaceholderType\" type in section 19.7.10 of \"Office Open XML File Formats - Fundamentals and\nMarkup Language Reference\", part 1 of [ECMA-376 5th\nedition](https://ecma-international.org/publications-and-standards/standards/ecma-376/).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.PlaceholderType.BODY`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------|--------|-------------------------------------------|\n| `UNSUPPORTED` | `Enum` | A placeholder type that is not supported. |\n| `NONE` | `Enum` | Not a Placeholder. |\n| `BODY` | `Enum` | Body text. |\n| `CHART` | `Enum` | Chart or graph. |\n| `CLIP_ART` | `Enum` | Clip art image. |\n| `CENTERED_TITLE` | `Enum` | Title centered. |\n| `DIAGRAM` | `Enum` | Diagram. |\n| `DATE_AND_TIME` | `Enum` | Date and time. |\n| `FOOTER` | `Enum` | Footer text. |\n| `HEADER` | `Enum` | Header text. |\n| `MEDIA` | `Enum` | Multimedia. |\n| `OBJECT` | `Enum` | Any content type. |\n| `PICTURE` | `Enum` | Picture. |\n| `SLIDE_NUMBER` | `Enum` | Number of a slide. |\n| `SUBTITLE` | `Enum` | Subtitle. |\n| `TABLE` | `Enum` | Table. |\n| `TITLE` | `Enum` | Slide title. |\n| `SLIDE_IMAGE` | `Enum` | Slide image. |"]]