存取及修改區塊,也就是套用至範圍內資料列或資料欄的顏色模式。每個區塊都包含一個範圍,以及一組用於資料列、資料欄、標題和頁尾的顏色。
方法
已淘汰的方法
方法 | 傳回類型 | 簡短說明 |
---|---|---|
| String | 傳回交替的第一個欄顏色,如果未設定顏色,則傳回 null 。 |
| String | 傳回第一列交替顏色,或如果未設定顏色則傳回 null 。 |
| String | 傳回最後一欄的顏色,如果未設定顏色,則傳回 null 。 |
| String | 傳回最後一列的顏色,如果未設定顏色,則傳回 null 。 |
| String | 傳回標題欄的顏色,如果未設定顏色,則傳回 null 。 |
| String | 傳回標題列的顏色,如果未設定顏色,則傳回 null 。 |
| String | 傳回交替的第二欄顏色,如果未設定顏色,則傳回 null 。 |
| String | 傳回交錯的第二列顏色,如果未設定顏色,則傳回 null 。 |
內容詳盡的說明文件
copyTo(range)
getFirstColumnColorObject()
getFirstRowColorObject()
getHeaderColumnColorObject()
getHeaderRowColorObject()
getRange()
getSecondColumnColorObject()
getSecondRowColorObject()
remove()
移除這條紋。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
setFirstColumnColor(color)
setFirstColumnColorObject(color)
setFirstRowColor(color)
setFirstRowColorObject(color)
setHeaderColumnColor(color)
setHeaderColumnColorObject(color)
setHeaderRowColor(color)
setHeaderRowColorObject(color)
setRange(range)
setSecondColumnColor(color)
setSecondColumnColorObject(color)
setSecondRowColor(color)
setSecondRowColorObject(color)
已淘汰的方法
getFirstColumnColor()
getFirstColumnColor()
已淘汰。已替換為 get
傳回交替的第一個欄顏色,如果未設定顏色,則傳回 null
。
回攻員
String
:CSS 符號中的顏色代碼 (例如 '#ffffff'
或 'white'
),如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getFirstRowColor()
getFirstRowColor()
已淘汰。已替換為 get
傳回第一列交替顏色,或如果未設定顏色則傳回 null
。
回攻員
String
:CSS 符號中的顏色代碼 (例如 '#ffffff'
或 'white'
),如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getFooterColumnColor()
getFooterColumnColor()
已淘汰。已替換為 get
傳回最後一欄的顏色,如果未設定顏色,則傳回 null
。
回攻員
String
:CSS 符號中的顏色代碼 (例如 '#ffffff'
或 'white'
),如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getFooterRowColor()
getFooterRowColor()
已淘汰。已替換為 get
傳回最後一列的顏色,如果未設定顏色,則傳回 null
。
回攻員
String
:CSS 符號中的顏色代碼 (例如 '#ffffff'
或 'white'
),如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getHeaderColumnColor()
getHeaderColumnColor()
已淘汰。已替換為 get
傳回標題欄的顏色,如果未設定顏色,則傳回 null
。
回攻員
String
:CSS 符號中的顏色代碼 (例如 '#ffffff'
或 'white'
),如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getHeaderRowColor()
getHeaderRowColor()
已淘汰。已替換為 get
傳回標題列的顏色,如果未設定顏色,則傳回 null
。
回攻員
String
:CSS 符號中的顏色代碼 (例如 '#ffffff'
或 'white'
),如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSecondColumnColor()
getSecondColumnColor()
已淘汰。已替換為 get
傳回交替的第二欄顏色,如果未設定顏色,則傳回 null
。
回攻員
String
:十六進位顏色,如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets
getSecondRowColor()
getSecondRowColor()
已淘汰。已替換為 get
傳回交錯的第二列顏色,如果未設定顏色,則傳回 null
。
回攻員
String
:CSS 符號中的顏色代碼 (例如 '#ffffff'
或 'white'
),如果未設定顏色則為 null
。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/spreadsheets.currentonly
-
https://www.googleapis.com/auth/spreadsheets