Adjustments
Shape.Adjustments property
Bietet Zugriff auf die Anpassungsrohwerte einer Form. Für eine Form, die keine Anpassungsrohwerte enthält, wird eine leere Sammlung zurückgegeben.
public AdjustmentCollection Adjustments { get; }
Beispiele
Zeigt, wie mit Anpassungsrohwerten gearbeitet wird.
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");
Siehe auch
- class AdjustmentCollection
- class Shape
- namensraum Aspose.Words.Drawing
- Montage Aspose.Words