Leadtools.Annotations Namespace > AnnUnitConverter Class > Convert Method : Convert(Single,AnnUnit,AnnUnit) Method |
'Declaration Public Overloads Shared Function Convert( _ ByVal value As Single, _ ByVal srcUnit As AnnUnit, _ ByVal destUnit As AnnUnit _ ) As Single
'Usage Dim value As Single Dim srcUnit As AnnUnit Dim destUnit As AnnUnit Dim value As Single value = AnnUnitConverter.Convert(value, srcUnit, destUnit)
Public Sub AnnUnitConverter_Convert() Dim result As Single = AnnUnitConverter.Convert(200.0F, AnnUnit.Pixel, AnnUnit.Inch) End Sub
public void AnnUnitConverter_Convert() { float result = AnnUnitConverter.Convert(200.0F, AnnUnit.Pixel, AnnUnit.Inch); }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2