Метод Shape::setShapeProperties
Метод устанавливает свойства фигуры ShapeProperties.
Пример
boost::optional<Shape> shapeOpt = document.getBlocks().getShape(0);
if (shapeOpt.has_value())
{
ShapeProperties shapeProperties = shapeOpt.get().getShapeProperties();
shapeProperties.verticalAlignment = VerticalAlignment::Center;
shapeOpt.get().setShapeProperties(shapeProperties);
}