java.lang.Object
com.aspose.words.Adjustment
public class Adjustment
Example:
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 | ||
|---|---|---|
java.lang.String | getName() | |
| Gets the name of the adjustment. | ||
int | getValue() | |
void | setValue(int value) | |
| Gets or sets the raw value of the adjustment. | ||
| Property Getters/Setters Detail |
|---|
getName | |
public java.lang.String getName() | |
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");getValue/setValue | |
public int getValue() / public void setValue(int value) | |
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");