Enum VerticalAlignment

VerticalAlignment

지원되는 세로 정렬 유형의 열거형입니다.

enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. DocumentApp.VerticalAlignment.BOTTOM을 예로 들 수 있습니다.

VerticalAlignment 열거형을 사용하여 표 셀의 세로 정렬을 설정합니다.

var body = DocumentApp.getActiveDocument().getBody();

// Append table containing two cells.
var 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);

속성

속성유형설명
BOTTOMEnum하단 정렬 옵션입니다.
CENTEREnum가운데 정렬 옵션입니다.
TOPEnum상단 정렬 옵션입니다.