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