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.

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

Syntax

HRESULT retVal = object.newValueSpecifiedUnits(unitType, valueInSpecifiedUnits);

Standards information

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

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