Enum LinkType
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
链接类型
Link
的类型。
如需调用枚举,您可以调用其父类、名称和属性。例如
SlidesApp.LinkType.URL
。
属性
属性 | 类型 | 说明 |
UNSUPPORTED | Enum | 不受支持的链接类型。 |
URL | Enum | 指向外部网页的链接。 |
SLIDE_POSITION | Enum | 指向此演示文稿中特定幻灯片的链接,通过其位置进行引用。 |
SLIDE_ID | Enum | 指向此演示文稿中特定幻灯片的链接,通过其 ID 进行引用。 |
SLIDE_INDEX | Enum | 指向此演示文稿中特定幻灯片的链接,通过其从零开始的索引进行寻址。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eLinkType\u003c/code\u003e in Google Slides API refers to the type of link associated with an object, such as a shape or text box.\u003c/p\u003e\n"],["\u003cp\u003eThe available link types include external web page links (\u003ccode\u003eURL\u003c/code\u003e), links to specific slides within the presentation by position (\u003ccode\u003eSLIDE_POSITION\u003c/code\u003e), ID (\u003ccode\u003eSLIDE_ID\u003c/code\u003e), or index (\u003ccode\u003eSLIDE_INDEX\u003c/code\u003e), along with an unsupported type (\u003ccode\u003eUNSUPPORTED\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eYou can use these link types with the \u003ccode\u003eSlidesApp.LinkType\u003c/code\u003e enum when scripting in Google Apps Script.\u003c/p\u003e\n"]]],[],null,["# Enum LinkType\n\nLinkType\n\nThe types of a [Link](/apps-script/reference/slides/link).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSlidesApp.LinkType.URL`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------|--------|-------------------------------------------------------------------------------------|\n| `UNSUPPORTED` | `Enum` | A link type that is not supported. |\n| `URL` | `Enum` | A link to an external web page. |\n| `SLIDE_POSITION` | `Enum` | A link to a specific slide in this presentation, addressed by its position. |\n| `SLIDE_ID` | `Enum` | A link to a specific slide in this presentation, addressed by its ID. |\n| `SLIDE_INDEX` | `Enum` | A link to a specific slide in this presentation, addressed by its zero-based index. |"]]