AI-generated Key Takeaways
-
AutoText is a dynamic element that gets replaced with content that can change, like a slide number.
-
You can use methods like
getAutoTextType()
,getIndex()
, andgetRange()
to interact with AutoText elements. -
These methods allow you to determine the type of AutoText, its position, and get the text range it spans within the slide.
-
To utilize these methods, your script needs authorization with specific scopes related to Google Slides access.
An element of text that is dynamically replaced with content that can change over time, such as a slide number.
Methods
Method | Return type | Brief description |
---|---|---|
get | Auto | Returns the type of auto text. |
get | Integer | Returns the index of the auto text. |
get | Text | Returns a Text spanning the auto text. |
Detailed documentation
getAutoTextType()
Returns the type of auto text. Returns null
if the auto text has been deleted.
Return
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
getIndex()
Returns the index of the auto text. Returns null
if the auto text has been deleted.
Return
Integer
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
getRange()
Returns a Text
spanning the auto text. Returns null
if the auto text has
been deleted.
Return
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