Class AutoText
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
AutoText
Um elemento de texto que é substituído dinamicamente por conteúdo que pode mudar com o tempo, como o
número do slide.
Documentação detalhada
getAutoTextType()
Retorna o tipo de texto automático. Retorna null
se o texto automático tiver sido excluído.
Retornar
AutoTextType
Autorização
Os scripts que usam esse método exigem autorização com um ou mais dos seguintes escopos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getIndex()
Retorna o índice do texto automático. Retorna null
se o texto automático tiver sido excluído.
Retornar
Integer
Autorização
Os scripts que usam esse método exigem autorização com um ou mais dos seguintes escopos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getRange()
Retorna um TextRange
que abrange o texto automático. Retorna null
se o texto automático tiver
sido excluído.
Retornar
TextRange
Autorização
Os scripts que usam esse método exigem autorização com um ou mais dos seguintes escopos:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003eAutoText is a dynamic element that gets replaced with content that can change, like a slide number.\u003c/p\u003e\n"],["\u003cp\u003eYou can use methods like \u003ccode\u003egetAutoTextType()\u003c/code\u003e, \u003ccode\u003egetIndex()\u003c/code\u003e, and \u003ccode\u003egetRange()\u003c/code\u003e to interact with AutoText elements.\u003c/p\u003e\n"],["\u003cp\u003eThese methods allow you to determine the type of AutoText, its position, and get the text range it spans within the slide.\u003c/p\u003e\n"],["\u003cp\u003eTo utilize these methods, your script needs authorization with specific scopes related to Google Slides access.\u003c/p\u003e\n"]]],[],null,["# Class AutoText\n\nAutoText\n\nAn element of text that is dynamically replaced with content that can change over time, such as a\nslide number. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------------------|--------------------------------------------------------------|-----------------------------------------------------------------------------------------|\n| [getAutoTextType()](#getAutoTextType()) | [AutoTextType](/apps-script/reference/slides/auto-text-type) | Returns the type of auto text. |\n| [getIndex()](#getIndex()) | `Integer` | Returns the index of the auto text. |\n| [getRange()](#getRange()) | [TextRange](/apps-script/reference/slides/text-range) | Returns a [TextRange](/apps-script/reference/slides/text-range) spanning the auto text. |\n\nDetailed documentation\n----------------------\n\n### `get``Auto``Text``Type()`\n\nReturns the type of auto text. Returns `null` if the auto text has been deleted.\n\n#### Return\n\n\n[AutoTextType](/apps-script/reference/slides/auto-text-type)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Index()`\n\nReturns the index of the auto text. Returns `null` if the auto text has been deleted.\n\n#### Return\n\n\n`Integer`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Range()`\n\nReturns a [TextRange](/apps-script/reference/slides/text-range) spanning the auto text. Returns `null` if the auto text has\nbeen deleted.\n\n#### Return\n\n\n[TextRange](/apps-script/reference/slides/text-range)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`"]]