Class Banding

Banding

存取及修改帶狀間隔,也就是套用至範圍內資料列或資料欄的顏色模式。每個帶狀區由範圍和一組資料列、資料欄、標題和頁尾的顏色組成。

方法

方法傳回類型簡短說明
copyTo(range)Banding將此帶狀效果複製到其他範圍。
getFirstColumnColorObject()Color|null傳回帶狀區的第一個交替欄顏色,如果未設定顏色,則傳回 null
getFirstRowColorObject()Color|null傳回第一個交替資料列顏色,如果未設定任何顏色,則傳回 null
getFooterColumnColorObject()Color|null傳回帶狀區最後一欄的顏色,如果未設定顏色,則傳回 null
getFooterRowColorObject()Color|null傳回帶狀區域的最後一個資料列顏色,如果未設定顏色,則傳回 null
getHeaderColumnColorObject()Color|null傳回帶狀區第一欄的顏色,如果未設定顏色,則傳回 null
getHeaderRowColorObject()Color|null傳回標題列的顏色,如果未設定顏色,則傳回 null
getRange()Range傳回此頻帶的範圍。
getSecondColumnColorObject()Color|null傳回帶狀區的第二個交替欄顏色,如果未設定顏色,則傳回 null
getSecondRowColorObject()Color|null傳回第二個交替列顏色,如果未設定顏色,則傳回 null
remove()void移除此條紋。
setFirstColumnColor(color)Banding設定交替的第一個資料欄顏色。
setFirstColumnColorObject(color)Banding設定帶狀區隔中的第一個替代欄顏色。
setFirstRowColor(color)Banding設定替代的第一列顏色。
setFirstRowColorObject(color)Banding設定帶狀區隔中的第一個替代列顏色。
setFooterColumnColor(color)Banding設定最後一欄的顏色。
setFooterColumnColorObject(color)Banding設定帶狀顯示最後一欄的顏色。
setFooterRowColor(color)Banding設定最後一列的顏色。
setFooterRowColorObject(color)Banding設定帶狀區塊中頁尾列的顏色。
setHeaderColumnColor(color)Banding設定標題欄的顏色。
setHeaderColumnColorObject(color)Banding設定標題欄的顏色。
setHeaderRowColor(color)Banding設定標題列的顏色。
setHeaderRowColorObject(color)Banding設定標題列的顏色。
setRange(range)Banding設定此頻帶的範圍。
setSecondColumnColor(color)Banding設定交替的第二欄顏色。
setSecondColumnColorObject(color)Banding設定帶狀區的第二個替代欄顏色。
setSecondRowColor(color)Banding設定交替的第二列顏色。
setSecondRowColorObject(color)Banding設定帶狀區域的第二個交替顏色。

內容詳盡的說明文件

copyTo(range)

將此帶狀效果複製到其他範圍。

參數

名稱類型說明
rangeRange要將此條紋複製到的範圍。

回攻員

Banding:新分級制度。

授權

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

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

getFirstColumnColorObject()

傳回帶狀區的第一個交替欄顏色,如果未設定顏色,則傳回 null

回攻員

Color|null:帶狀區隔中的第一個交替欄顏色,如果未設定顏色,則為 null

授權

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

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

getFirstRowColorObject()

傳回第一個交替資料列顏色,如果未設定任何顏色,則傳回 null

回攻員

Color|null:帶狀區隔中的第一個交替資料列顏色,如果未設定顏色,則為 null

授權

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

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

getFooterColumnColorObject()

傳回帶狀區最後一欄的顏色,如果未設定顏色,則傳回 null

回攻員

Color|null:帶狀區的最後一欄顏色,如果未設定顏色,則為 null

授權

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

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

getFooterRowColorObject()

傳回帶狀區域的最後一個資料列顏色,如果未設定顏色,則傳回 null

回攻員

Color|null:帶狀區的頁尾列顏色,如果未設定顏色,則為 null

授權

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

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

getHeaderColumnColorObject()

傳回帶狀區第一欄的顏色,如果未設定顏色,則傳回 null

回攻員

Color|null:帶狀區的第一欄顏色,如果未設定顏色,則為 null

授權

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

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

getHeaderRowColorObject()

傳回標題列的顏色,如果未設定顏色,則傳回 null

回攻員

Color|null:標題列的顏色;如果未設定顏色,則會傳回 null

授權

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

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

getRange()

傳回此頻帶的範圍。

回攻員

Range:這個頻帶的範圍。

授權

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

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

getSecondColumnColorObject()

傳回帶狀區的第二個交替欄顏色,如果未設定顏色,則傳回 null

回攻員

Color|null:帶狀區的第二個交替欄顏色,或未設定顏色時的 null

授權

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

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

getSecondRowColorObject()

傳回第二個交替列顏色,如果未設定顏色,則傳回 null

回攻員

Color|null:帶狀區的第二個交替列顏色,如果未設定顏色,則為 null

授權

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

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

remove()

移除此條紋。

授權

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

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

setFirstColumnColor(color)

設定交替的第一個資料欄顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setFirstColumnColorObject(color)

設定帶狀區隔中的第一個替代欄顏色。

參數

名稱類型說明
colorColor帶狀區隔中新的第一個交替欄顏色;設為 null 會清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setFirstRowColor(color)

設定交替的第一列顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setFirstRowColorObject(color)

設定帶狀區隔中的第一個替代列顏色。

參數

名稱類型說明
colorColor帶狀顯示的新第一種交替顏色;設為 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setFooterColumnColor(color)

設定最後一欄的顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setFooterColumnColorObject(color)

設定帶狀顯示最後一欄的顏色。

參數

名稱類型說明
colorColor帶狀區最後一欄的新顏色;設為 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setFooterRowColor(color)

設定最後一列的顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setFooterRowColorObject(color)

設定帶狀區塊中頁尾列的顏色。

參數

名稱類型說明
colorColor新的頁尾列顏色;設為 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setHeaderColumnColor(color)

設定標題欄的顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setHeaderColumnColorObject(color)

設定標題欄的顏色。

參數

名稱類型說明
colorColor新的標題欄顏色;設為 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setHeaderRowColor(color)

設定標題列的顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setHeaderRowColorObject(color)

設定標題列的顏色。

參數

名稱類型說明
colorColor新的標題列顏色;設為 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setRange(range)

設定此頻帶的範圍。

參數

名稱類型說明
rangeRange這個分級的新範圍。

回攻員

Banding - This banding, for chaining.

授權

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

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

setSecondColumnColor(color)

設定交替的第二欄顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setSecondColumnColorObject(color)

設定帶狀區的第二個替代欄顏色。

參數

名稱類型說明
colorColor帶狀區的第二個交替資料欄顏色;設為 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setSecondRowColor(color)

設定交替的第二列顏色。

參數

名稱類型說明
colorStringCSS 標記中的顏色代碼 (例如 '#ffffff''white'),或 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

setSecondRowColorObject(color)

設定帶狀區域的第二個交替顏色。

參數

名稱類型說明
colorColor帶狀顯示的第二個交替顏色;設為 null 可清除顏色。

回攻員

Banding - This banding, for chaining.

授權

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

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

已淘汰的方法