Table of Contents

Method ConvertToSpecifiedUnits

Namespace
SharpVectors.Dom.Svg
Assembly
SharpVectors.Model.dll

ConvertToSpecifiedUnits(SvgLengthType)

Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType, valueAsSpecified and valueAsString might be modified as a result of this method. For example, if the original value were "0.5cm" and the method was invoked to convert to millimeters, then the unitType would be changed to MM, valueAsSpecified would be changed to the numeric value 5 and valueAsString would be changed to "5mm".

public void ConvertToSpecifiedUnits(SvgLengthType unitType)

Parameters

unitType SvgLengthType

The unitType to switch to (e.g., MM).