Class Fill

填滿

說明網頁元素的背景

方法

方法傳回類型簡短說明
getSolidFill()SolidFill取得這個背景的實心填滿,或 null (如果填滿類型不是 FillType.SOLID)。
getType()FillType取得這項填寫作業的類型。
isVisible()Boolean背景是否可見。
setSolidFill(color)void將實心填滿設為指定的 Color
setSolidFill(color, alpha)void將實心填滿設為指定的 Alpha 和 Color
setSolidFill(red, green, blue)void將實心填滿設為指定的 RGB 值。
setSolidFill(red, green, blue, alpha)void將實心填滿設為指定的 Alpha 和 RGB 值。
setSolidFill(hexString)void將純色填滿設為指定的十六進位顏色字串。
setSolidFill(hexString, alpha)void將純色填滿設為指定的 Alpha 和十六進位顏色字串。
setSolidFill(color)void將實心填滿設為指定的 ThemeColorType
setSolidFill(color, alpha)void將實心填滿設為指定的 Alpha 和 ThemeColorType
setTransparent()void將背景設為透明。

內容詳盡的說明文件

getSolidFill()

取得這個背景的實心填滿,或 null (如果填滿類型不是 FillType.SOLID)。

回攻員

SolidFill:實心填滿設定,或 null (如果填滿類型不是實心)。

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

getType()

取得這項填寫作業的類型。

回攻員

FillType:這個填滿的類型。

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

isVisible()

背景是否可見。

回攻員

Boolean:如果背景可見,則為 true;否則為 false

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(color)

將實心填滿設為指定的 Color

參數

名稱類型說明
colorColor

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(color, alpha)

將實心填滿設為指定的 Alpha 和 Color

參數

名稱類型說明
colorColor
alphaNumber

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(red, green, blue)

將實心填滿設為指定的 RGB 值。

參數

名稱類型說明
redInteger
greenInteger
blueInteger

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(red, green, blue, alpha)

將實心填滿設為指定的 Alpha 和 RGB 值。

參數

名稱類型說明
redInteger
greenInteger
blueInteger
alphaNumber

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(hexString)

將純色填滿設為指定的十六進位顏色字串。

十六進位字串的格式必須為「#RRGGBB」。舉例來說,粉紅色會以「#FFC0CB」表示。

參數

名稱類型說明
hexStringString

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(hexString, alpha)

將純色填滿設為指定的 Alpha 和十六進位顏色字串。

十六進位字串的格式必須為「#RRGGBB」。舉例來說,粉紅色會以「#FFC0CB」表示。

參數

名稱類型說明
hexStringString
alphaNumber

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(color)

將實心填滿設為指定的 ThemeColorType

參數

名稱類型說明
colorThemeColorType

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setSolidFill(color, alpha)

將實心填滿設為指定的 Alpha 和 ThemeColorType

參數

名稱類型說明
colorThemeColorType
alphaNumber

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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

setTransparent()

將背景設為透明。

授權

使用這個方法的指令碼需要一或多個下列範圍的授權:

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