Item
AdjustmentCollection indexer
Restituisce una regolazione all’indice specificato.
public Adjustment this[int index] { get; }
| Parametro | Descrizione |
|---|---|
| index | Un indice della collezione. |
Esempi
Mostra come lavorare con i valori grezzi di regolazione.
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");
Guarda anche
- class Adjustment
- class AdjustmentCollection
- spazio dei nomi Aspose.Words.Drawing
- assemblea Aspose.Words