Class List

  • This documentation outlines the properties and methods associated with the 'List' object in Google Slides, allowing developers to interact with lists programmatically.

  • Two primary methods, getListId() and getListParagraphs(), enable retrieval of the list's ID and its constituent paragraphs, respectively.

  • Both methods necessitate authorization with specific scopes related to Google Presentations for security and access control.

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