SVGAngle.ConvertToSpecifiedUnits

SVGAngle.ConvertToSpecifiedUnits method

Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType, valueInSpecifiedUnits and valueAsString might be modified as a result of this method.

public void ConvertToSpecifiedUnits(ushort unitType)
ParameterTypeDescription
unitTypeUInt16The unit type to switch to (e.g., SVG_ANGLETYPE_DEG).

Exceptions

exceptioncondition
dOMExceptionCode NOT_SUPPORTED_ERRRaised if unitType is SVG_ANGLETYPE_UNKNOWN or not a valid unit type constant (one of the other SVG_ANGLETYPE_* constants defined on this interface).
dOMExceptionCode NO_MODIFICATION_ALLOWED_ERRRaised when the angle corresponds to a read only attribute or when the object itself is read only.

See Also