Class List
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
內容詳盡的說明文件
getListId()
傳回清單的 ID。
回攻員
String
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getListParagraphs()
傳回清單中的所有 Paragraphs
。
回攻員
Paragraph[]
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis documentation outlines the properties and methods associated with the 'List' object in Google Slides, allowing developers to interact with lists programmatically.\u003c/p\u003e\n"],["\u003cp\u003eTwo primary methods, \u003ccode\u003egetListId()\u003c/code\u003e and \u003ccode\u003egetListParagraphs()\u003c/code\u003e, enable retrieval of the list's ID and its constituent paragraphs, respectively.\u003c/p\u003e\n"],["\u003cp\u003eBoth methods necessitate authorization with specific scopes related to Google Presentations for security and access control.\u003c/p\u003e\n"]]],[],null,["# Class List\n\nList\n\nA list in the text. \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------|--------------------------------------------------------|------------------------------------------------------------------------------------|\n| [getListId()](#getListId()) | `String` | Returns the ID of the list. |\n| [getListParagraphs()](#getListParagraphs()) | [Paragraph[]](/apps-script/reference/slides/paragraph) | Returns all the [Paragraphs](/apps-script/reference/slides/paragraph) in the list. |\n\nDetailed documentation\n----------------------\n\n### `get``List``Id()`\n\nReturns the ID of the list.\n\n#### Return\n\n\n`String`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``List``Paragraphs()`\n\nReturns all the [Paragraphs](/apps-script/reference/slides/paragraph) in the list.\n\n#### Return\n\n\n[Paragraph[]](/apps-script/reference/slides/paragraph)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`"]]