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 | 表示演讲者特写。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):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. |"]]