AI-generated Key Takeaways
-
PlaceholderType is used to specify the type of content a placeholder in Google Slides can hold, like text, images, or charts.
-
These types are based on the ECMA-376 standard for Office Open XML file formats, with more details available in the standard's documentation.
-
To use a PlaceholderType, refer to its parent class (SlidesApp), name (PlaceholderType), and specific property (e.g., BODY for body text).
-
A comprehensive list of PlaceholderTypes is provided, including common types like TITLE, BODY, CHART, and more specific ones like DATE_AND_TIME or SLIDE_NUMBER.
-
If a placeholder type isn't recognized, it falls under the UNSUPPORTED or NONE types.
The placeholder types. Many of these placeholder types correspond to placeholder IDs from the ECMA-376 standard. More information on those shapes can be found in the description of the "ST_PlaceholderType" type in section 19.7.10 of "Office Open XML File Formats - Fundamentals and Markup Language Reference", part 1 of ECMA-376 5th edition.
To call an enum, you call its parent class, name, and property. For example,
SlidesApp.PlaceholderType.BODY
.
Properties
Property | Type | Description |
---|---|---|
UNSUPPORTED | Enum | A placeholder type that is not supported. |
NONE | Enum | Not a Placeholder. |
BODY | Enum | Body text. |
CHART | Enum | Chart or graph. |
CLIP_ART | Enum | Clip art image. |
CENTERED_TITLE | Enum | Title centered. |
DIAGRAM | Enum | Diagram. |
DATE_AND_TIME | Enum | Date and time. |
FOOTER | Enum | Footer text. |
HEADER | Enum | Header text. |
MEDIA | Enum | Multimedia. |
OBJECT | Enum | Any content type. |
PICTURE | Enum | Picture. |
SLIDE_NUMBER | Enum | Number of a slide. |
SUBTITLE | Enum | Subtitle. |
TABLE | Enum | Table. |
TITLE | Enum | Slide title. |
SLIDE_IMAGE | Enum | Slide image. |