Метод Shape.getShapeProperties
Метод возвращает свойства фигуры ShapeProperties.
Пример
Пример для текстового документа:
shapes = document.getRange().getShapes()
shapesEnumerator = shapes.getEnumerator()
for shape in shapesEnumerator:
shapeProperties = shape.getShapeProperties()
print(shapeProperties.verticalAlignment)
Пример для табличного документа:
shapes = table.getShapes()
shapesEnumerator = shapes.getEnumerator()
for shape in shapesEnumerator:
shapeProperties = shape.getShapeProperties()
print(shapeProperties.verticalAlignment)