Class Paragraph

Paragraph

改行文字で終わるテキストのセグメント。

メソッド

メソッド戻り値の型概要
getIndex()Integer|null段落の改行のインデックスを返します。
getRange()TextRange|nullこのオブジェクトの改行文字で終わる段落内のテキストにまたがる TextRange を返します。

詳細なドキュメント

getIndex()

段落の改行のインデックスを返します。改行が削除された場合は null を返します。

戻る

Integer|null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

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

getRange()

このオブジェクトの改行文字で終わる段落のテキストにまたがる TextRange を返します。段落の改行が削除された場合は null を返します。

戻る

TextRange|null

承認

このメソッドを使用するスクリプトには、次の 1 つ以上のスコープによる承認が必要です。

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