Enum 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);

خواص

ویژگی تایپ کنید شرح
BOTTOM Enum گزینه تراز پایین.
CENTER Enum گزینه تراز وسط.
TOP Enum گزینه تراز بالا.