Class TableRow
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
TableRow
테이블의 행입니다. 행은 테이블 셀 목록으로 구성됩니다. 행은 행 인덱스로 식별됩니다.
자세한 문서
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
getMinimumHeight()
행의 최소 높이(포인트)를 반환합니다. 실제 높이는 셀의 콘텐츠 길이에 따라 다릅니다.
리턴
Number
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
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
remove()
표 행을 삭제합니다.
행의 모든 셀이 다른 행과 병합되면 이러한 셀이 포함된 공통 행이 삭제됩니다.
이 삭제 후 테이블에 행이 남아 있지 않으면 전체 테이블이 삭제됩니다.
승인
이 메서드를 사용하는 스크립트에는 다음 범위 중 하나 이상의 승인이 필요합니다.
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eA \u003ccode\u003eTableRow\u003c/code\u003e represents a row within a table in Google Slides, comprised of a list of table cells and identified by its index.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can access and manipulate \u003ccode\u003eTableRow\u003c/code\u003e objects using methods like \u003ccode\u003egetCell()\u003c/code\u003e, \u003ccode\u003egetIndex()\u003c/code\u003e, \u003ccode\u003egetMinimumHeight()\u003c/code\u003e, \u003ccode\u003egetNumCells()\u003c/code\u003e, \u003ccode\u003egetParentTable()\u003c/code\u003e, and \u003ccode\u003eremove()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTableRow\u003c/code\u003e methods allow for retrieving specific cells, obtaining row properties (index, minimum height, number of cells), accessing the parent table, and removing the row entirely.\u003c/p\u003e\n"],["\u003cp\u003eUsing these methods requires authorization with specific scopes related to Google Presentations.\u003c/p\u003e\n"]]],["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"],null,["# Class TableRow\n\nTableRow\n\nA row in a table. A row consists of a list of table cells. A row is identified by the row index. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------|-------------------------------------------------------|--------------------------------------------------|\n| [getCell(cellIndex)](#getCell(Integer)) | [TableCell](/apps-script/reference/slides/table-cell) | Returns the cell at the specified index. |\n| [getIndex()](#getIndex()) | `Integer` | Returns the 0-based index of the row. |\n| [getMinimumHeight()](#getMinimumHeight()) | `Number` | Returns the minimum height of the row in points. |\n| [getNumCells()](#getNumCells()) | `Integer` | Returns the number of cells in this row. |\n| [getParentTable()](#getParentTable()) | [Table](/apps-script/reference/slides/table) | Returns the table containing the current row. |\n| [remove()](#remove()) | `void` | Removes the table row. |\n\nDetailed documentation\n----------------------\n\n### `get``Cell(cellIndex)`\n\nReturns the cell at the specified index.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------|-----------|--------------------------------------------|\n| `cell``Index` | `Integer` | The 0-based index of the cell to retrieve. |\n\n#### Return\n\n\n[TableCell](/apps-script/reference/slides/table-cell) --- the cell.\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Index()`\n\nReturns the 0-based index of the row.\n\n#### Return\n\n\n`Integer`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Minimum``Height()`\n\nReturns the minimum height of the row in points. The actual height depends on the length of the\ncontent of the cell.\n\n#### Return\n\n\n`Number`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Num``Cells()`\n\nReturns the number of cells in this row.\n\n#### Return\n\n\n`Integer`\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `get``Parent``Table()`\n\nReturns the table containing the current row.\n\n#### Return\n\n\n[Table](/apps-script/reference/slides/table)\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`\n\n*** ** * ** ***\n\n### `remove()`\n\nRemoves the table row.\n\nIf all the cells in the row are merged with other rows, the common rows spanned by these\ncells are removed.\n\nIf no rows remain in the table after this removal, the whole table is removed.\n\n#### Authorization\n\nScripts that use this method require authorization with one or more of the following [scopes](/apps-script/concepts/scopes#setting_explicit_scopes):\n\n- `https://www.googleapis.com/auth/presentations.currentonly`\n- `https://www.googleapis.com/auth/presentations`"]]