Enum SelectionType

  • 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, likeSlidesApp.SelectionType.TEXT.

  • Properties like UNSUPPORTED, NONE, TEXT, TABLE_CELL, PAGE, PAGE_ELEMENT, and CURRENT_PAGE represent different selection states.

SelectionType

Type ofSelection.

TheSelectionType represents the most specific type of one or more objects that areselected. As an example if one or moreTableCell instances are selected in aTable, the selection type isSelectionType.TABLE_CELL. TheTableCellRange 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

PropertyTypeDescription
UNSUPPORTEDEnumA selection type that is not supported.
NONEEnumNo selection.
TEXTEnumText selection.
TABLE_CELLEnumTable cell selection.
PAGEEnumPage selection in the thumbnail flimstrip.
PAGE_ELEMENTEnumPage element selection.
CURRENT_PAGEEnumCurrent 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.