Class AutoText | Apps Script | Google for Developers (original) (raw)
Class AutoText
Stay organized with collections Save and categorize content based on your preferences.
AutoText
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 |
---|---|---|
getAutoTextType() | AutoTextType | Returns the type of auto text. |
getIndex() | Integer | Returns the index of the auto text. |
getRange() | TextRange | Returns a TextRange spanning the auto text. |
Detailed documentation
getAutoTextType()
Returns the type of auto text. Returns null
if the auto text has been deleted.
Return
[AutoTextType](/apps-script/reference/slides/auto-text-type)
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 [TextRange](/apps-script/reference/slides/text-range)
spanning the auto text. Returns null
if the auto text has been deleted.
Return
[TextRange](/apps-script/reference/slides/text-range)
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-03 UTC.