java.lang.Object
com.aspose.words.AdjustmentCollection
public class AdjustmentCollection
- extends java.lang.Object
Represents a read-only collection of Adjustment adjust values that are applied to the specified shape.
Example:
Shows how to work with adjustment raw values.
Document doc = new Document(getMyDir() + "Rounded rectangle shape.docx");
Shape shape = (Shape)doc.getChild(NodeType.SHAPE, 0, true);
AdjustmentCollection adjustments = shape.getAdjustments();
Assert.assertEquals(1, adjustments.getCount());
Adjustment adjustment = adjustments.get(0);
Assert.assertEquals("adj", adjustment.getName());
Assert.assertEquals(16667, adjustment.getValue());
adjustment.setValue(30000);
doc.save(getArtifactsDir() + "Shape.Adjustments.docx");
|
Property Getters/Setters Summary |
int | getCount() | |
|
Gets the number of elements contained in the collection.
|
Adjustment | get(int index) | |
|
Returns an adjustment at the specified index.
|
|
Property Getters/Setters Detail |
getCount | |
public int getCount()
|
-
Gets the number of elements contained in the collection.
-
Returns an adjustment at the specified index.
- Parameters:
index - An index into the collection.
See Also:
Aspose.Words Documentation - the home page for the Aspose.Words Product Documentation.
Aspose.Words Support Forum - our preferred method of support.