Class List

  • TheList object represents a list in the text and has methods to retrieve its ID and paragraphs.

  • ThegetListId() method returns the unique identifier for the list as a string.

  • ThegetListParagraphs() method returns an array ofParagraph objects contained within the list.

  • Both methods require specific authorization scopes related to accessing presentations.

List

A list in the text.

Methods

MethodReturn typeBrief description
getListId()StringReturns the ID of the list.
getListParagraphs()Paragraph[]Returns all theParagraphs in the list.

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 followingscopes:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getListParagraphs()

Returns all theParagraphs in the list.

Return

Paragraph[]

Authorization

Scripts that use this method require authorization with one or more of the followingscopes:

  • 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 theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-12-02 UTC.