存取及修改資料透視表群組限制。
方法
| 方法 | 傳回類型 | 簡短說明 | 
|---|---|---|
get | Integer | 取得資料透視群組中列或欄的計數限制。 | 
get | Pivot | 傳回限制所屬的資料透視群組。 | 
remove() | void | 移除資料透視表元素群組限制。 | 
set | Pivot | 設定資料透視群組中列或欄的計數限制。 | 
內容詳盡的說明文件
get Count Limit()
取得資料透視群組中列或欄的計數限制。
回攻員
Integer:列或欄的計數限制。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly - 
https://www.googleapis.com/auth/spreadsheets 
get Pivot Group()
傳回限制所屬的資料透視群組。
回攻員
Pivot:資料透視表元素群組。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
- 
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 
set Count Limit(countLimit)
設定資料透視群組中列或欄的計數限制。
參數
| 名稱 | 類型 | 說明 | 
|---|---|---|
count | Integer | 要設定的列數或欄數上限。必須為正數。 | 
回攻員
Pivot:資料透視表元素群組限制,用於鏈結。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
- 
https://www.googleapis.com/auth/spreadsheets.currentonly - 
https://www.googleapis.com/auth/spreadsheets