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
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]