Class TableRow
TableRow
テーブル内の行。行はテーブルセルのリストで構成されています。行は行番号で識別されます。
詳細なドキュメント
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
getMinimumHeight()
行の最小高さをポイント単位で返します。実際の高さは、セルの内容の長さによって異なります。
戻る
Number
承認
このメソッドを使用するスクリプトには、次のスコープの 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
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-02 UTC。
[null,null,["最終更新日 2024-12-02 UTC。"],[[["A `TableRow` represents a row within a table in Google Slides, comprised of a list of table cells and identified by its index."],["Developers can access and manipulate `TableRow` objects using methods like `getCell()`, `getIndex()`, `getMinimumHeight()`, `getNumCells()`, `getParentTable()`, and `remove()`."],["`TableRow` methods allow for retrieving specific cells, obtaining row properties (index, minimum height, number of cells), accessing the parent table, and removing the row entirely."],["Using these methods requires authorization with specific scopes related to Google Presentations."]]],["A table row, identified by its index, contains a list of cells. Key actions include: retrieving a specific cell by its index (`getCell`), obtaining the row's index (`getIndex`), getting the minimum row height (`getMinimumHeight`), determining the number of cells (`getNumCells`), finding the parent table (`getParentTable`), and removing the row (`remove`). Removing a row may also remove merged or even the whole table if necessary. Accessing these methods requires specific authorization scopes.\n"]]