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