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, unit_type, value_in_specified_units):
...
Parameter | Type | Description |
---|---|---|
unit_type | int | The unit type for the value. |
value_in_specified_units | float | The new value.. |
Exceptions
Exception | Description |
---|---|
DOMException | Code DOMException.NOT_SUPPORTED_ERR Raised if unitType is SVG_LENGTHTYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_LENGTHTYPE_* constants defined on this interface). |
DOMException | Code DOMException.NO_MODIFICATION_ALLOWED_ERR Raised when the length 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
SVGLength