Enum SelectionType
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
SeçimTürü
Selection
türü.
SelectionType
, seçilen bir veya daha fazla nesnenin en spesifik türünü temsil eder. Örneğin, bir Table
içinde bir veya daha fazla TableCell
örneği seçilirse seçim türü SelectionType.TABLE_CELL
olur. TableCellRange
, Selection.getTableCellRange
kullanılarak alınabilir. Table
, Selection.getPageElementRange
kullanılarak, Page
ise Selection.getCurrentPage
kullanılarak alınabilir.
Bir enum'u çağırmak için üst sınıfını, adını ve özelliğini çağırırsınız. Örneğin,
SlidesApp.SelectionType.TEXT
.
Özellikler
Mülk | Tür | Açıklama |
UNSUPPORTED | Enum | Desteklenmeyen bir seçim türü. |
NONE | Enum | Seçim yapılmadı. |
TEXT | Enum | Metin seçimi. |
TABLE_CELL | Enum | Tablo hücresi seçimi. |
PAGE | Enum | Küçük resim film şeridinde sayfa seçimi. |
PAGE_ELEMENT | Enum | Sayfa öğesi seçimi. |
CURRENT_PAGE | Enum | Geçerli sayfa seçimi. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 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. |"]]