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

HRESULT retVal = 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: float

    The new value.

Return value

Type: HRESULT

This method can return one of these values.

Return code Description
W3CException_DOM_NOT_SUPPORTED_ERR

IE9 mode only.

The requested operation is not supported.

W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR

IE9 mode only.

An attempt is made to modify an object that cannot be changed.

 

Exceptions

Exception Condition
NotSupportedError

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.

NoModificationAllowedError

The requested operation is not supported. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned.

 

Standards information