Метод TextBox:setGeometryProperties
Метод устанавливает свойства фигуры GeometryProperties.
Пример для текстового документа:
textBoxes = document:getRange():getTextBoxes()
for textBox in textBoxes:enumerate() do
geometryProperties = textBox:getGeometryProperties()
geometryProperties.rotation = 45.0
textBox:setGeometryProperties(geometryProperties)
end
Пример для табличного документа:
table = document:getBlocks():getTable(0)
textBoxes = table:getTextBoxes()
for textBox in textBoxes:enumerate() do
geometryProperties = textBox:getGeometryProperties()
geometryProperties.rotation = 45.0
textBox:setGeometryProperties(geometryProperties)
end