Class AutoText

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