Value
Contents
[
Hide
]Adjustment.Value property
Gets or sets the raw value of the adjustment.
public int Value { get; set; }
Remarks
An adjust value is simply a guide that has a value based formula specified. That is, no calculation takes place for an adjust value guide. Instead, this guide specifies a parameter value that is used for calculations within the shape guides.
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
- class Adjustment
- namespace Aspose.Words.Drawing
- assembly Aspose.Words