convert_to_specified_units method
convert_to_specified_units
Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType, valueInSpecifiedUnits and valueAsString might be modified as a result of this method.
def convert_to_specified_units(self, unit_type):
...
Parameter | Type | Description |
---|---|---|
unit_type | int | The unit type to switch to (e.g., SVG_ANGLETYPE_DEG). |
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.html.dom.svg.datatypes
- class
DOMException
- class
SVGAngle