Class List
Stay organized with collections
Save and categorize content based on your preferences.
Detailed documentation
getListId()
Returns the ID of the list.
Return
String
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getListParagraphs()
Returns all the Paragraphs
in the list.
Return
Paragraph[]
Authorization
Scripts that use this method require authorization with one or more of the following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["\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`"]]