new_value_specified_units method
new_value_specified_units
Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
def new_value_specified_units(self, new_unit_type, value_in_specified_units):
...
Parameter | Type | Description |
---|---|---|
new_unit_type | int | The unit type for the value (e.g., SVG_ANGLETYPE_DEG). |
value_in_specified_units | float | The angle value. |
Exceptions
Exception | Description |
---|---|
DOMException | Code DOMException.NOT_SUPPORTED_ERR Raised if unitType is SVG_ANGLETYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_ANGLETYPE_* constants defined on this interface). |
DOMException | Code DOMException.NO_MODIFICATION_ALLOWED_ERR Raised when the angle corresponds to a read only attribute or when the object itself is read only. |
See Also
- module
aspose.svg.datatypes
- class
DOMException
- class
SVGAngle