Таблица DocumentAPI.VerticalAlignment
В таблице представлены константы видов выравнивания текста по вертикали. Используется в DocumentAPI.CellProperties, DocumentAPI.ShapeProperties.
| Значение | Представление в интерфейсе | Представление в интерфейсе |
|---|---|---|
DocumentAPI.VerticalAlignment_Bottom | ||
DocumentAPI.VerticalAlignment_Center | ||
DocumentAPI.VerticalAlignment_Top |
Пример
local tbl = document:getBlocks():getTable(0)
local cell = tbl:getCell("A1")
local props = cell:getCellProperties()
props.verticalAlignment = DocumentAPI.VerticalAlignment_Center
cell:setCellProperties(props)