Метод TextBox:getShapeProperties
Метод возвращает свойства текстового поля ShapeProperties.
Пример для текстового документа:
textBoxes = document:getRange():getTextBoxes()
for textBox in textBoxes:enumerate() do
shapeProperties = textBox:getShapeProperties()
print(shapeProperties.verticalAlignment)
end
Пример для табличного документа:
table = document:getBlocks():getTable(0)
textBoxes = table:getTextBoxes()
for textBox in textBoxes:enumerate() do
shapeProperties = textBox:getShapeProperties()
print(shapeProperties.verticalAlignment)
end