AI-generated Key Takeaways
-
PageElementType
is used to identify the type of element on a Slides page, like a shape, image, or table. -
To reference a specific element type, use the format
SlidesApp.PageElementType.[Element Type]
, for example,SlidesApp.PageElementType.SHAPE
. -
There are various predefined element types including
UNSUPPORTED
,SHAPE
,IMAGE
,VIDEO
,TABLE
,GROUP
,LINE
,WORD_ART
,SHEETS_CHART
, andSPEAKER_SPOTLIGHT
. -
Each
PageElementType
provides a way to categorize and interact with different components within Google Slides presentations programmatically.
The page element type.
To call an enum, you call its parent class, name, and property. For example,
SlidesApp.PageElementType.SHAPE
.
Properties
Property | Type | Description |
---|---|---|
UNSUPPORTED | Enum | Represents a page element that is not supported and cannot be further classified. |
SHAPE | Enum | Represents a generic shape that does not have a more specific classification. |
IMAGE | Enum | Represents an image. |
VIDEO | Enum | Represents a video. |
TABLE | Enum | Represents a table. |
GROUP | Enum | Represents a collection of page elements joined as a single unit. |
LINE | Enum | Represents a line. |
WORD_ART | Enum | Represents word art. |
SHEETS_CHART | Enum | Represents a linked chart embedded from Google Sheets. |
SPEAKER_SPOTLIGHT | Enum | Represents a speaker spotlight. |