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