Class LineFill

LineFill

線またはアウトラインの塗りつぶしを記述します。

メソッド

メソッド戻り値の型概要
getFillType()LineFillType線の塗りつぶしのタイプを取得します。
getSolidFill()SolidFill|null線の単色塗りつぶしを取得します。塗りつぶしタイプが LineFillType.SOLID でない場合は null を返します。
setSolidFill(color)void単色塗りつぶしを、指定された Color に設定します。
setSolidFill(color, alpha)void単色塗りつぶしを、指定されたアルファ値と Color に設定します。
setSolidFill(red, green, blue)void単色塗りつぶしを、指定された RGB 値に設定します。
setSolidFill(red, green, blue, alpha)void単色塗りつぶしを、指定されたアルファ値と RGB 値に設定します。
setSolidFill(hexString)void単色塗りつぶしを、指定された 16 進数カラー文字列に設定します。
setSolidFill(hexString, alpha)void単色塗りつぶしを、指定されたアルファ値と 16 進数カラー文字列に設定します。
setSolidFill(color)void単色塗りつぶしを、指定された ThemeColorType に設定します。
setSolidFill(color, alpha)void単色塗りつぶしを、指定されたアルファ値と ThemeColorType に設定します。

詳細なドキュメント

getFillType()

線の塗りつぶしのタイプを取得します。

戻る

LineFillType

承認

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

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

getSolidFill()

線の単色塗りつぶしを取得します。塗りつぶしタイプが LineFillType.SOLID でない場合は null を返します。

戻る

SolidFill|null

承認

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

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

setSolidFill(color)

単色塗りつぶしを、指定された Color に設定します。

パラメータ

名前タイプ説明
colorColor設定する色。

承認

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

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

setSolidFill(color, alpha)

単色塗りつぶしを、指定されたアルファ値と Color に設定します。

パラメータ

名前タイプ説明
colorColor設定する色。
alphaNumberアルファ値(透明度)。

承認

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

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

setSolidFill(red, green, blue)

単色塗りつぶしを、指定された RGB 値に設定します。

パラメータ

名前タイプ説明
redInteger赤のコンポーネント。
greenInteger緑のコンポーネント。
blueInteger青のコンポーネント。

承認

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

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

setSolidFill(red, green, blue, alpha)

単色塗りつぶしを、指定されたアルファ値と RGB 値に設定します。

パラメータ

名前タイプ説明
redInteger赤のコンポーネント。
greenInteger緑のコンポーネント。
blueInteger青のコンポーネント。
alphaNumberアルファ値(透明度)。

承認

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

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

setSolidFill(hexString)

単色塗りつぶしを、指定された 16 進数カラー文字列に設定します。

パラメータ

名前タイプ説明
hexStringString16 進数カラー文字列。

承認

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

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

setSolidFill(hexString, alpha)

単色塗りつぶしを、指定されたアルファ値と 16 進数カラー文字列に設定します。

パラメータ

名前タイプ説明
hexStringString16 進数カラー文字列。
alphaNumberアルファ値(透明度)。

承認

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

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

setSolidFill(color)

単色塗りつぶしを、指定された ThemeColorType に設定します。

パラメータ

名前タイプ説明
colorThemeColorTypeテーマの色タイプ。

承認

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

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

setSolidFill(color, alpha)

単色塗りつぶしを、指定されたアルファ値と ThemeColorType に設定します。

パラメータ

名前タイプ説明
colorThemeColorTypeテーマの色タイプ。
alphaNumberアルファ値(透明度)。

承認

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

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