說明網頁背景
方法
| 方法 | 傳回類型 | 簡短說明 |
|---|---|---|
get | Picture | 取得這個背景的延展圖片填滿,如果背景填滿類型不是 Page,則為 null。 |
get | Solid | 取得這個背景的實心填滿,或 null 如果背景填滿類型不是 Page。 |
get | Page | 取得這個頁面背景的類型。 |
is | Boolean | 背景是否可見。 |
set | void | 將指定圖片 Blob 中的圖片設為網頁背景。 |
set | void | 將指定網址的圖片設為網頁背景。 |
set | void | 將實心填滿設為指定的 Color。 |
set | void | 將實心填滿設為指定的 Alpha 和 Color。 |
set | void | 將實心填滿設為指定的 RGB 值。 |
set | void | 將實心填滿設為指定的 Alpha 和 RGB 值。 |
set | void | 將純色填滿設為指定的十六進位顏色字串。 |
set | void | 將純色填滿設為指定的 Alpha 和十六進位顏色字串。 |
set | void | 將實心填滿設為指定的 Theme。 |
set | void | 將實心填滿設為指定的 Alpha 和 Theme。 |
set | void | 將背景設為透明。 |
內容詳盡的說明文件
getPictureFill()
取得這個背景的延展圖片填滿,如果背景填滿類型不是 PageBackgroundType.PICTURE,則為 null。
回攻員
PictureFill|null
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
getSolidFill()
取得這個背景的實心填滿,或 null 如果背景填滿類型不是 PageBackgroundType.SOLID。
回攻員
SolidFill|null
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
getType()
取得這個頁面背景的類型。
回攻員
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
isVisible()
背景是否可見。
回攻員
Boolean
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setPictureFill(blobSource)
將指定圖片 Blob 中的圖片設為網頁背景。圖片會延展,以符合頁面尺寸。
插入圖片時,系統會從 BlobSource 擷取圖片一次,並儲存副本,以便在簡報中顯示。圖片大小不得超過 50 MB,像素不得超過 2500 萬,且格式必須為 PNG、JPEG 或 GIF。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
blob | Blob | 圖片資料。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setPictureFill(imageUrl)
將指定網址的圖片設為網頁背景。圖片會延展以符合頁面尺寸。
插入圖片時,系統會從網址擷取圖片一次,並儲存副本,以便在簡報中顯示。圖片大小不得超過 50 MB,像素不得超過 2500 萬,且格式必須為 PNG、JPEG 或 GIF。
提供的網址必須可供所有人存取,且大小不得超過 2 KB。網址本身會與圖片一併儲存,並透過 PictureFill.getSourceUrl() 公開。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
image | String | 可下載圖片的網址。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setSolidFill(color)
setSolidFill(color, alpha)
setSolidFill(red, green, blue)
將實心填滿設為指定的 RGB 值。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
red | Integer | 紅色元件。 |
green | Integer | 綠色分量。 |
blue | Integer | 藍色元件。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setSolidFill(red, green, blue, alpha)
將實心填滿設為指定的 Alpha 和 RGB 值。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
red | Integer | 紅色元件。 |
green | Integer | 綠色分量。 |
blue | Integer | 藍色元件。 |
alpha | Number | Alpha 值 (透明度)。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setSolidFill(hexString)
將純色填滿設為指定的十六進位顏色字串。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
hex | String | 十六進位顏色字串。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setSolidFill(hexString, alpha)
將純色填滿設為指定的 Alpha 和十六進位顏色字串。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
hex | String | 十六進位顏色字串。 |
alpha | Number | Alpha 值 (透明度)。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setSolidFill(color)
將實心填滿設為指定的 ThemeColorType。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
color | Theme | 主題顏色類型。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
setSolidFill(color, alpha)
將實心填滿設為指定的 Alpha 和 ThemeColorType。
參數
| 名稱 | 類型 | 說明 |
|---|---|---|
color | Theme | 主題顏色類型。 |
alpha | Number | Alpha 值 (透明度)。 |
授權
使用這個方法的指令碼需要下列一或多個範圍的授權:
-
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