Метод TextBox.setGeometryProperties
Метод для установки геометрических свойств текстового поля GeometryProperties.
Пример для текстового документа:
textBoxes = document.getRange().getTextBoxes()
textBoxesEnumerator = textBoxes.getEnumerator()
for textBox in textBoxesEnumerator:
GeometryProperties geometryProperties = textBox.getGeometryProperties()
geometryProperties.rotation = 45.0
textBox.setGeometryProperties(geometryProperties)
Пример для табличного документа:
textBoxes = table.getTextBoxes()
textBoxesEnumerator = textBoxes.getEnumerator()
for textBox in textBoxesEnumerator:
GeometryProperties geometryProperties = textBox.getGeometryProperties()
geometryProperties.rotation = 45.0
textBox.setGeometryProperties(geometryProperties)