Export (0) Print
Expand All

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.

Scalable Vector Graphics: Basic Data Types and Interfaces, Section 4Internet Explorer 9

 

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 codeDescription
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

ExceptionCondition
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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft