Adjustment class
Adjustment class
Represents adjustment values that are applied to the specified shape.
Properties
Name | Description |
---|---|
name | Gets the name of the adjustment. |
value | Gets or sets the raw value of the adjustment. |
Examples
Shows how to work with adjustment raw values.
doc = aw.Document(file_name=MY_DIR + 'Rounded rectangle shape.docx')
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
adjustments = shape.adjustments
self.assertEqual(1, adjustments.count)
adjustment = adjustments[0]
self.assertEqual('adj', adjustment.name)
self.assertEqual(16667, adjustment.value)
adjustment.value = 30000
doc.save(file_name=ARTIFACTS_DIR + 'Shape.Adjustments.docx')
See Also
- module aspose.words.drawing