Class TableColumn
テーブル列テーブル内の列。列はテーブルセルのリストで構成されます。列は列番号で識別されます。
詳細なドキュメント
getCell(cellIndex)
指定されたインデックスのセルを返します。
パラメータ
名前 | 型 | 説明 |
cellIndex | Integer | 取得するセルの 0 ベースのインデックス。 |
戻る
TableCell
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getIndex()
列の 0 ベースのインデックスを返します。
戻る
Integer
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getNumCells()
この列内のセルの数を返します。
戻る
Integer
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getParentTable()
現在の列を含むテーブルを返します。
戻る
Table
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getWidth()
列の幅をポイント単位で返します。
戻る
Number
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
remove()
テーブルの列を削除します。
列内のすべてのセルが他の列と結合されている場合、これらのセルにまたがる共通の列は削除されます。
この削除後にテーブルに列が残っていない場合、テーブル全体が削除されます。
承認
このメソッドを使用するスクリプトには、次のスコープの 1 つ以上による承認が必要です。
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-03 UTC。
[null,null,["最終更新日 2024-12-03 UTC。"],[[["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"]]