The SelectionType represents the most specific type of one or more objects that are
selected. As an example if one or more TableCell instances are selected in a Table, the selection type is SelectionType.TABLE_CELL. The TableCellRange can be
retrieved by using the Selection.getTableCellRange. The Table can be retrieved by
using the Selection.getPageElementRange and the Page can be retrieved from the
Selection.getCurrentPage.
To call an enum, you call its parent class, name, and property. For example,
SlidesApp.SelectionType.TEXT.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-03 UTC."],[[["\u003cp\u003e\u003ccode\u003eSelectionType\u003c/code\u003e identifies the specific type of selected objects in Google Slides, like text, table cells, or pages.\u003c/p\u003e\n"],["\u003cp\u003eWhen multiple objects of the same type are selected, \u003ccode\u003eSelectionType\u003c/code\u003e reflects the most specific type, enabling access to properties like \u003ccode\u003eTableCellRange\u003c/code\u003e or \u003ccode\u003ePageElementRange\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSelectionType\u003c/code\u003e has several enum values, including \u003ccode\u003eUNSUPPORTED\u003c/code\u003e, \u003ccode\u003eNONE\u003c/code\u003e, \u003ccode\u003eTEXT\u003c/code\u003e, \u003ccode\u003eTABLE_CELL\u003c/code\u003e, \u003ccode\u003ePAGE\u003c/code\u003e, \u003ccode\u003ePAGE_ELEMENT\u003c/code\u003e, and \u003ccode\u003eCURRENT_PAGE\u003c/code\u003e, representing different selection states.\u003c/p\u003e\n"],["\u003cp\u003eYou can access these values using the syntax \u003ccode\u003eSlidesApp.SelectionType.TEXT\u003c/code\u003e (replace \u003ccode\u003eTEXT\u003c/code\u003e with the desired property).\u003c/p\u003e\n"]]],[],null,["# Enum SelectionType\n\nSelectionType\n\nType of [Selection](/apps-script/reference/slides/selection).\n\nThe [SelectionType](#) represents the most specific type of one or more objects that are\nselected. As an example if one or more [TableCell](/apps-script/reference/slides/table-cell) instances are selected in a [Table](/apps-script/reference/slides/table), the selection type is `Selection``Type.TABLE_CELL`. The [TableCellRange](/apps-script/reference/slides/table-cell-range) can be\nretrieved by using the `Selection.getTableCellRange`. The [Table](/apps-script/reference/slides/table) can be retrieved by\nusing the `Selection.getPageElementRange` and the [Page](/apps-script/reference/slides/page) can be retrieved from the\n`Selection.getCurrentPage`.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.SelectionType.TEXT`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|--------------------------------------------|\n| `UNSUPPORTED` | `Enum` | A selection type that is not supported. |\n| `NONE` | `Enum` | No selection. |\n| `TEXT` | `Enum` | Text selection. |\n| `TABLE_CELL` | `Enum` | Table cell selection. |\n| `PAGE` | `Enum` | Page selection in the thumbnail flimstrip. |\n| `PAGE_ELEMENT` | `Enum` | Page element selection. |\n| `CURRENT_PAGE` | `Enum` | Current page selection. |"]]