Class Fill

塗りつぶし

ページ要素の背景を記述します

メソッド

メソッド戻り値の型概要
getSolidFill()SolidFillこの背景の単色塗りつぶしを取得します。塗りつぶしタイプが FillType.SOLID でない場合は null を返します。
getType()FillTypeこの塗りつぶしのタイプを取得します。
isVisible()Boolean背景を表示するかどうか。
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 に設定します。
setTransparent()void背景を透明に設定します。

詳細なドキュメント

getSolidFill()

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

戻る

SolidFill - 単色塗りつぶし設定。塗りつぶしタイプが単色でない場合は null

承認

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

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

getType()

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

戻る

FillType - この塗りつぶしのタイプ。

承認

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

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

isVisible()

背景を表示するかどうか。

戻る

Boolean - 背景が表示されている場合は true、それ以外の場合は false

承認

このメソッドを使用するスクリプトには、次の 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 進数の色文字列に単色塗りつぶしを設定します。

16 進数文字列は「#RRGGBB」の形式にする必要があります。たとえば、ピンクは「#FFC0CB」で表されます。

パラメータ

名前説明
hexStringString

承認

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

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

setSolidFill(hexString, alpha)

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

16 進数文字列は「#RRGGBB」の形式にする必要があります。たとえば、ピンクは「#FFC0CB」で表されます。

パラメータ

名前説明
hexStringString
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

setTransparent()

背景を透明に設定します。

承認

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

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