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
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-03 (世界標準時間)。
[null,null,["上次更新時間: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."]]],[]]