Enum PlaceholderType

  • 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.

PlaceholderType

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

PropertyTypeDescription
UNSUPPORTEDEnumA placeholder type that is not supported.
NONEEnumNot a Placeholder.
BODYEnumBody text.
CHARTEnumChart or graph.
CLIP_ARTEnumClip art image.
CENTERED_TITLEEnumTitle centered.
DIAGRAMEnumDiagram.
DATE_AND_TIMEEnumDate and time.
FOOTEREnumFooter text.
HEADEREnumHeader text.
MEDIAEnumMultimedia.
OBJECTEnumAny content type.
PICTUREEnumPicture.
SLIDE_NUMBEREnumNumber of a slide.
SUBTITLEEnumSubtitle.
TABLEEnumTable.
TITLEEnumSlide title.
SLIDE_IMAGEEnumSlide image.