Skip to main content

Метод TextBox.setGeometryProperties

Метод устанавливает геометрические свойства текстового поля GeometryProperties.

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


TextBoxes textBoxes = document.getRange().getTextBoxes();
TextBoxesEnumerator textBoxesEnumerator = textBoxes.getEnumerator();
foreach (var textBox in textBoxesEnumerator)
{
GeometryProperties geometryProperties = textBox.getGeometryProperties();
geometryProperties.rotation = 45.0;
textBox.setGeometryProperties(shapeProperties);
}

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


TextBoxes textBoxes = table.getTextBoxes();
TextBoxesEnumerator textBoxesEnumerator = textBoxes.getEnumerator();
foreach (var textBox in textBoxesEnumerator)
{
GeometryProperties geometryProperties = textBox.getGeometryProperties();
geometryProperties.rotation = 45.0;
textBox.setGeometryProperties(shapeProperties);
}