Class TableColumn
資料表欄表格中的一欄。資料欄由表格儲存格清單組成。資料欄會以資料欄索引標示。
內容詳盡的說明文件
getCell(cellIndex)
傳回指定索引的儲存格。
參數
名稱 | 類型 | 說明 |
cellIndex | Integer | 要擷取的儲存格索引 (從 0 開始)。 |
回攻員
TableCell
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getIndex()
傳回資料欄的索引 (從 0 開始)。
回攻員
Integer
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getNumCells()
傳回這個欄中的儲存格數量。
回攻員
Integer
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getParentTable()
傳回包含目前資料欄的資料表。
回攻員
Table
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getWidth()
以點為單位傳回資料欄的寬度。
回攻員
Number
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
remove()
移除表格欄。
如果資料欄中的所有儲存格都與其他資料欄合併,系統會移除這些儲存格跨越的共同欄。
如果移除後資料表中沒有任何資料欄,則會移除整個資料表。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-03 (世界標準時間)。
[null,null,["上次更新時間:2024-12-03 (世界標準時間)。"],[[["A TableColumn represents a column within a Google Slides table, comprised of a list of TableCells and identified by its column index."],["Developers can access and manipulate TableColumns using methods like getCell(), getIndex(), getNumCells(), getParentTable(), getWidth(), and remove()."],["These methods allow for retrieving specific cells, determining column index and size, identifying the parent table, and removing the column entirely."],["Each method requires specific authorization scopes, typically 'https://www.googleapis.com/auth/presentations.currentonly' or 'https://www.googleapis.com/auth/presentations', to interact with Google Slides presentations."],["Removing a TableColumn with merged cells may remove common spanned columns and potentially the entire table if no columns remain."]]],["A `TableColumn` represents a column in a table, composed of `TableCell`s, identified by its index. Key actions include retrieving a specific cell via `getCell(cellIndex)`, obtaining the column's index with `getIndex()`, and determining the number of cells using `getNumCells()`. Other methods include getting the parent table via `getParentTable()`, getting the column's width in points using `getWidth()`, and removing the column using `remove()`. Removal may lead to the deletion of the entire table.\n"]]