Skip to main content

Метод Shape.getShapeProperties

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

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


Shapes shapes = document.getRange().getShapes();
ShapesEnumerator shapesEnumerator = shapes.getEnumerator();
foreach (var shape in shapesEnumerator)
{
ShapeProperties shapeProperties = shape.getShapeProperties()
Console.WriteLine(shapeProperties.verticalAlignment);
}

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


ShapesEnumerator enumerator = table.getShapes().getEnumerator();
foreach (var shape in shapesEnumerator)
{
ShapeProperties shapeProperties = shape.getShapeProperties()
Console.WriteLine(shapeProperties.verticalAlignment);
}