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