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