Class AutoText
自动文本
文本元素,会被动态替换为可随时间而变化的内容,例如幻灯片编号。
详细文档
getAutoTextType()
返回自动文本的类型。如果自动输入的文字已被删除,则返回 null
。
返回
AutoTextType
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getIndex()
返回自动文本的索引。如果自动输入的文字已被删除,则返回 null
。
返回
Integer
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getRange()
返回跨自动文本的 TextRange
。如果自动输入的文字已被删除,则返回 null
。
返回
TextRange
授权
使用此方法的脚本需要获得以下一个或多个范围的授权:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-03。
[null,null,["最后更新时间 (UTC):2024-12-03。"],[[["AutoText is a dynamic element that gets replaced with content that can change, like a slide number."],["You can use methods like `getAutoTextType()`, `getIndex()`, and `getRange()` 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."]]],[]]