Enum PageElementType
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
頁面元素類型頁面元素類型。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SlidesApp.PageElementType.SHAPE
。
屬性
屬性 | 類型 | 說明 |
UNSUPPORTED | Enum | 代表系統不支援的網頁元素,無法進一步分類。 |
SHAPE | Enum | 代表沒有更具體分類的一般形狀。 |
IMAGE | Enum | 代表圖片。 |
VIDEO | Enum | 代表影片。 |
TABLE | Enum | 代表資料表。 |
GROUP | Enum | 代表一組頁面元素,這些元素已彙整為單一單位。 |
LINE | Enum | 代表一條線。 |
WORD_ART | Enum | 代表文字藝術。 |
SHEETS_CHART | Enum | 代表從 Google 試算表嵌入的連結圖表。 |
SPEAKER_SPOTLIGHT | Enum | 代表講者鏡頭畫面。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003ePageElementType\u003c/code\u003e is used to identify the type of element on a Slides page, like a shape, image, or table.\u003c/p\u003e\n"],["\u003cp\u003eTo reference a specific element type, use the format \u003ccode\u003eSlidesApp.PageElementType.[Element Type]\u003c/code\u003e, for example, \u003ccode\u003eSlidesApp.PageElementType.SHAPE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are various predefined element types including \u003ccode\u003eUNSUPPORTED\u003c/code\u003e, \u003ccode\u003eSHAPE\u003c/code\u003e, \u003ccode\u003eIMAGE\u003c/code\u003e, \u003ccode\u003eVIDEO\u003c/code\u003e, \u003ccode\u003eTABLE\u003c/code\u003e, \u003ccode\u003eGROUP\u003c/code\u003e, \u003ccode\u003eLINE\u003c/code\u003e, \u003ccode\u003eWORD_ART\u003c/code\u003e, \u003ccode\u003eSHEETS_CHART\u003c/code\u003e, and \u003ccode\u003eSPEAKER_SPOTLIGHT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003ePageElementType\u003c/code\u003e provides a way to categorize and interact with different components within Google Slides presentations programmatically.\u003c/p\u003e\n"]]],[],null,["# Enum PageElementType\n\nPageElementType\n\nThe page element type.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.PageElementType.SHAPE`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------------|--------|-----------------------------------------------------------------------------------|\n| `UNSUPPORTED` | `Enum` | Represents a page element that is not supported and cannot be further classified. |\n| `SHAPE` | `Enum` | Represents a generic shape that does not have a more specific classification. |\n| `IMAGE` | `Enum` | Represents an image. |\n| `VIDEO` | `Enum` | Represents a video. |\n| `TABLE` | `Enum` | Represents a table. |\n| `GROUP` | `Enum` | Represents a collection of page elements joined as a single unit. |\n| `LINE` | `Enum` | Represents a line. |\n| `WORD_ART` | `Enum` | Represents word art. |\n| `SHEETS_CHART` | `Enum` | Represents a linked chart embedded from Google Sheets. |\n| `SPEAKER_SPOTLIGHT` | `Enum` | Represents a speaker spotlight. |"]]