newValueSpecifiedUnits method
Resets the specified value as a number with the specified unit type, replacing the values for all of the attributes on the object.
![]() ![]() |
Syntax
object.newValueSpecifiedUnits(unitType, valueInSpecifiedUnits)Parameters
- unitType [in]
-
Type: short
The unit type for the specified valueInSpecifiedUnits value, such as SVG_ANGLETYPE_DEG or SVG_LENGTHTYPE_MM.
- valueInSpecifiedUnits [in]
-
Type: Floating-point
The new value.
Return value
Type: HRESULT
This method can return one of these values.
| Return code | Description |
|---|---|
|
IE9 mode only. The requested operation is not supported. |
|
IE9 mode only. An attempt is made to modify an object that cannot be changed. |
Exceptions
| Exception | Condition |
|---|---|
|
An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, DOM_NOT_SUPPORTED_ERR is returned. |
|
The requested operation is not supported. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned. |
Standards information
See also

