Class LineFill

線條填滿

描述線條或輪廓的填滿

方法

方法傳回類型簡短說明
getFillType()LineFillType取得線條填滿類型。
getSolidFill()SolidFill|null取得線條的實心填滿,如果填滿類型不是 LineFillType.SOLID,則為 null
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

內容詳盡的說明文件

getFillType()

取得線條填滿類型。

回攻員

LineFillType

授權

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

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

getSolidFill()

取得線條的實心填滿,如果填滿類型不是 LineFillType.SOLID,則為 null

回攻員

SolidFill|null

授權

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

  • 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要設定的顏色。
alphaNumberAlpha 值 (透明度)。

授權

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

  • 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藍色元件。
alphaNumberAlpha 值 (透明度)。

授權

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

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

setSolidFill(hexString)

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

參數

名稱類型說明
hexStringString十六進位顏色字串。

授權

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

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

setSolidFill(hexString, alpha)

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

參數

名稱類型說明
hexStringString十六進位顏色字串。
alphaNumberAlpha 值 (透明度)。

授權

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

  • 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主題顏色類型。
alphaNumberAlpha 值 (透明度)。

授權

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

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