Skip to main content

Таблица DocumentAPI.GeometryProperties

Таблица DocumentAPI.GeometryProperties предоставляет параметры, необходимые для задания геометрических свойств фигуры (поворот, отражение). Используется в Shape:setGeometryProperties(), Shape:getGeometryProperties().

ПолеТипОписание
DocumentAPI.GeometryProperties_rotationnumberУгол поворота фигуры в градусах
DocumentAPI.GeometryProperties_horizontalFlipnumberОтражение по горизонтали
DocumentAPI.GeometryProperties_verticalFlipnumberОтражение по вертикали

Пример​


images = document:getRange():getImages()
for image in images:enumerate() do
geometryProperties = image:getGeometryProperties()
print(geometryProperties.rotation)
print(geometryProperties.horizontalFlip)
print(geometryProperties.verticalFlip)
end