Adjustment

Adjustment class

Represents adjustment values that are applied to the specified shape.

public class Adjustment

Properties

NameDescription
Name { get; }Gets the name of the adjustment.
Value { get; set; }Gets or sets the raw value of the adjustment.

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.AreEqual(1, adjustments.Count);

Adjustment adjustment = adjustments[0];
Assert.AreEqual("adj", adjustment.Name);
Assert.AreEqual(16667, adjustment.Value);

adjustment.Value = 30000;

doc.Save(ArtifactsDir + "Shape.Adjustments.docx");

See Also