Enum VerticalAlignment
세로정렬
지원되는 세로 정렬 유형의 열거형입니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
DocumentApp.VerticalAlignment.BOTTOM
입니다.
VerticalAlignment
열거형을 사용하여 테이블 셀의 수직 정렬을 설정합니다.
const body =
DocumentApp.getActiveDocument().getActiveTab().asDocumentTab().getBody();
// Append table containing two cells.
const table = body.appendTable([['Top', 'Center', 'Bottom']]);
// Align the first cell's contents to the top.
table.getCell(0, 0).setVerticalAlignment(DocumentApp.VerticalAlignment.TOP);
// Align the second cell's contents to the center.
table.getCell(0, 1).setVerticalAlignment(DocumentApp.VerticalAlignment.CENTER);
// Align the third cell's contents to the bottom.
table.getCell(0, 2).setVerticalAlignment(DocumentApp.VerticalAlignment.BOTTOM);
속성
속성 | 유형 | 설명 |
BOTTOM | Enum | 하단 정렬 옵션 |
CENTER | Enum | 가운데 정렬 옵션 |
TOP | Enum | 상단 정렬 옵션 |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-12-22(UTC)
[null,null,["최종 업데이트: 2024-12-22(UTC)"],[[["`VerticalAlignment` is used to define how content is vertically aligned within a table cell."],["It offers three options: `TOP`, `CENTER`, and `BOTTOM` for aligning content to the top, center, or bottom of the cell, respectively."],["You can set the vertical alignment of a table cell using `DocumentApp.VerticalAlignment` and the desired alignment property within your Apps Script code."]]],["`VerticalAlignment` enum sets the vertical alignment of table cells in a document. It's accessed via `DocumentApp.VerticalAlignment`. Available options are `BOTTOM`, `CENTER`, and `TOP`. To use it, call `setVerticalAlignment()` on a table cell object with the desired alignment type. The example code demonstrates creating a table with three cells and aligning their content to the top, center, and bottom, respectively.\n"]]