Class List

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

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

  • The getListParagraphs() method returns an array of Paragraph 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 the Paragraphs 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 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