Class AutoText

自动文本

一种文本元素,可动态替换为随时间变化的内容,例如幻灯片编号。

方法

方法返回类型简介
getAutoTextType()AutoTextType|null返回自动文本的类型。
getIndex()Integer|null返回自动文本的索引。
getRange()TextRange|null返回跨越自动文本的 TextRange

详细文档

getAutoTextType()

返回自动文本的类型。如果自动输入的文字已被删除,则返回 null

返回

AutoTextType|null

授权

使用此方法的脚本需要获得以下一项或多项范围的授权:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getIndex()

返回自动文本的索引。如果自动输入的文字已被删除,则返回 null

返回

Integer|null

授权

使用此方法的脚本需要获得以下一项或多项范围的授权:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getRange()

返回跨越自动文本的 TextRange。如果自动输入的文字已被删除,则返回 null

返回

TextRange|null

授权

使用此方法的脚本需要获得以下一项或多项范围的授权:

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations