Class Paragraph

段落

以換行字元結尾的文字片段。

方法

方法傳回類型簡短說明
getIndex()Integer|null傳回段落換行的索引。
getRange()TextRange|null傳回 TextRange,範圍涵蓋以這個物件的換行字元結尾的段落文字。

內容詳盡的說明文件

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