Enum LinkType
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
連結類型
Link
的類型。
如要呼叫列舉,請呼叫其父項類別、名稱和屬性。例如
SlidesApp.LinkType.URL
。
屬性
屬性 | 類型 | 說明 |
UNSUPPORTED | Enum | 系統不支援的連結類型。 |
URL | Enum | 外部網頁的連結。 |
SLIDE_POSITION | Enum | 連結至簡報中特定投影片的連結,以位置為準。 |
SLIDE_ID | Enum | 連結至這份簡報中的特定投影片,並以 ID 做為參照。 |
SLIDE_INDEX | Enum | 連結至這份簡報中的特定投影片,以從零開始計算的索引指定。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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. |"]]