Enum SelectionType Stay organized with collections Save and categorize content based on your preferences.
Page Summary
SelectionType indicates the most specific type of selected objects in Google Slides.
Examples show how to retrieve details like TableCellRange or the parent Table based on the SelectionType.
The SelectionType enum is accessed using its parent class, name, and property, like
SlidesApp.SelectionType.TEXT.Properties like UNSUPPORTED, NONE, TEXT, TABLE_CELL, PAGE, PAGE_ELEMENT, and CURRENT_PAGE represent different selection states.
Type ofSelection.
TheSelection represents the most specific type of one or more objects that areselected. As an example if one or moreTable instances are selected in aTable, the selection type isSelection. TheTable can beretrieved by using theSelection.getTableCellRange. TheTable can be retrieved byusing theSelection.getPageElementRange and thePage can be retrieved from theSelection.getCurrentPage.
To call an enum, you call its parent class, name, and property. For example,SlidesApp.SelectionType.TEXT.
Properties
| Property | Type | Description |
|---|---|---|
UNSUPPORTED | Enum | A selection type that is not supported. |
NONE | Enum | No selection. |
TEXT | Enum | Text selection. |
TABLE_CELL | Enum | Table cell selection. |
PAGE | Enum | Page selection in the thumbnail flimstrip. |
PAGE_ELEMENT | Enum | Page element selection. |
CURRENT_PAGE | Enum | Current page selection. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.