Skip to main content

Таблица DocumentAPI.TextOrientation

Таблица DocumentAPI.TextOrientation содержит угол поворота текста в ячейке, фигуре и т. д. (см. CellProperties).

Пример​


local tbl = document:getBlocks():getTable(0)
local cell = tbl:getCell("D2") -- DocumentAPI.CellPosition(3,1)
local props = cell:getCellProperties()
props.textOrientation = DocumentAPI.TextOrientation(45.5)
cell:setCellProperties(props)
print(props.textOrientation:getAngle())