AdjustmentCollection
AdjustmentCollection class
Represents a read-only collection of Adjustment
adjust values that are applied to the specified shape.
public class AdjustmentCollection
Properties
Name | Description |
---|---|
Count { get; } | Gets the number of elements contained in the collection. |
Item { get; } | Returns an adjustment at the specified index. |
Examples
Shows how to work with adjustment raw values.
Document doc = new Document(MyDir + "Rounded rectangle shape.docx");
Shape shape = (Shape)doc.GetChild(NodeType.Shape, 0, true);
AdjustmentCollection adjustments = shape.Adjustments;
Assert.That(adjustments.Count, Is.EqualTo(1));
Adjustment adjustment = adjustments[0];
Assert.That(adjustment.Name, Is.EqualTo("adj"));
Assert.That(adjustment.Value, Is.EqualTo(16667));
adjustment.Value = 30000;
doc.Save(ArtifactsDir + "Shape.Adjustments.docx");
See Also
- namespace Aspose.Words.Drawing
- assembly Aspose.Words