Skip to main content

Метод Shape:setShapeProperties

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

Пример​


local shape = document:getBlocks():getShape(0)
local shape_properties = shape:getShapeProperties()
shape_properties.verticalAlignment = DocumentAPI.VerticalAlignment_Center
shape:setShapeProperties(shape_properties)