Enum SelectionType
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Seleçãodo tipo
Tipo de Selection
.
O SelectionType
representa o tipo mais específico de um ou mais objetos
selecionados. Por exemplo, se uma ou mais instâncias de TableCell
forem selecionadas em um Table
, o tipo de seleção será SelectionType.TABLE_CELL
. O TableCellRange
pode ser
recuperado usando o Selection.getTableCellRange
. O Table
pode ser recuperado
usando o Selection.getPageElementRange
, e o Page
pode ser recuperado do
Selection.getCurrentPage
.
Para chamar um tipo enumerado, chame a classe mãe, o nome e a propriedade dele. Por exemplo,
SlidesApp.SelectionType.TEXT
.
Propriedades
Propriedade | Tipo | Descrição |
UNSUPPORTED | Enum | Um tipo de seleção que não é aceito. |
NONE | Enum | Nenhuma seleção. |
TEXT | Enum | Seleção de texto. |
TABLE_CELL | Enum | Seleção de células da tabela. |
PAGE | Enum | Seleção de página na tira de miniaturas. |
PAGE_ELEMENT | Enum | Seleção de elementos da página. |
CURRENT_PAGE | Enum | Seleção da página atual. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 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. |"]]