newValueSpecifiedUnits method
[This documentation is preliminary and is subject to change.]
Resets the specified value as a number with the specified unit type, replacing the values for all of the attributes on the object.
![]() ![]() |
Syntax
HRESULT retVal = object.newValueSpecifiedUnits(unitType, valueInSpecifiedUnits);
Standards information
Parameters
unitType [in]
Type: shortThe unit type for the specified valueInSpecifiedUnits value, such as SVG_ANGLETYPE_DEG or SVG_LENGTHTYPE_MM.
valueInSpecifiedUnits [in]
Type: floatThe new value.
Return value
Type: HRESULT
This method can return one of these values.
| Return code | Description |
|---|---|
| W3CException_DOM_NOT_SUPPORTED_ERR | The requested operation is not supported. |
| W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR | An attempt is made to modify an object that cannot be changed. |
Build date: 1/26/2012
.png)
.png)