SVGLength.NewValueSpecifiedUnits method

Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.

public void NewValueSpecifiedUnits(ushort unitType, float valueInSpecifiedUnits)
Parameter Type Description
unitType UInt16 The unit type for the value.
valueInSpecifiedUnits Single The new value..


exception condition
DOMException Code NOT_SUPPORTED_ERRRaised if unitType is SVG_LENGTHTYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_LENGTHTYPE_* constants defined on this interface).
DOMException Code NO_MODIFICATION_ALLOWED_ERRRaised when the length corresponds to a read only attribute or when the object itself is read only.

See Also