Skip to main content

Метод Shape.setShapeProperties

Метод устанавливает свойства фигуры ShapeProperties.

Пример для текстового документа:​


shapes = document.getRange().getShapes()
shapesEnumerator = shapes.getEnumerator()
for shape in shapesEnumerator:
shapeProperties = shape.getShapeProperties()
shapeProperties.textDirection = myOfficeSDK.TextDirection_Vertical
shape.setShapeProperties(shapeProperties)

Пример для табличного документа:​


shapes = table.getShapes()
shapesEnumerator = shapes.getEnumerator()
for shape in shapesEnumerator:
shapeProperties = shape.getShapeProperties()
shapeProperties.textDirection = myOfficeSDK.TextDirection_Vertical
shape.setShapeProperties(shapeProperties)