Class PageRange
Stay organized with collections
Save and categorize content based on your preferences.
PageRange
A collection of one or more Page
instances.
Detailed documentation
getPages()
Returns the list of Page
instances.
Return
Page[]
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\u003ePageRange represents a collection of one or more Google Slides Page instances.\u003c/p\u003e\n"],["\u003cp\u003eIt has a single method, \u003ccode\u003egetPages()\u003c/code\u003e, which returns a list of all Page instances within the PageRange.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003egetPages()\u003c/code\u003e requires authorization with specific Google Slides scopes.\u003c/p\u003e\n"]]],[],null,["# Class PageRange\n\nPageRange\n\nA collection of one or more [Page](/apps-script/reference/slides/page) instances. \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------|----------------------------------------------|---------------------------------------------------------------------------|\n| [getPages()](#getPages()) | [Page[]](/apps-script/reference/slides/page) | Returns the list of [Page](/apps-script/reference/slides/page) instances. |\n\nDetailed documentation\n----------------------\n\n### `get``Pages()`\n\nReturns the list of [Page](/apps-script/reference/slides/page) instances.\n\n#### Return\n\n\n[Page[]](/apps-script/reference/slides/page)\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`"]]