Enum PlaceholderType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
占位符类型
占位符类型。其中许多占位符类型与 ECMA-376 标准中的占位符 ID 相对应。如需详细了解这些形状,请参阅 ECMA-376 第 5 版第 1 部分“Office Open XML 文件格式 - 基础知识和标记语言参考”的 19.7.10 部分中“ST_PlaceholderType”类型的说明。
如需调用枚举,您可以调用其父类、名称和属性。例如
SlidesApp.PlaceholderType.BODY
。
属性
属性 | 类型 | 说明 |
UNSUPPORTED | Enum | 不受支持的占位符类型。 |
NONE | Enum | 不是占位符。 |
BODY | Enum | 正文。 |
CHART | Enum | 图表。 |
CLIP_ART | Enum | 剪贴画图片。 |
CENTERED_TITLE | Enum | 标题居中。 |
DIAGRAM | Enum | 示意图。 |
DATE_AND_TIME | Enum | 日期和时间。 |
FOOTER | Enum | 页脚文本。 |
HEADER | Enum | 标题文本。 |
MEDIA | Enum | 多媒体。 |
OBJECT | Enum | 任何内容类型。 |
PICTURE | Enum | 图片。 |
SLIDE_NUMBER | Enum | 幻灯片编号。 |
SUBTITLE | Enum | 副标题。 |
TABLE | Enum | 表格。 |
TITLE | Enum | 幻灯片标题。 |
SLIDE_IMAGE | Enum | 幻灯片图片。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\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. |"]]