Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
ConvertTo Method
See Also 
Leadtools.Annotations Namespace > AnnSize Structure : ConvertTo Method




converter
Specifies the AnnUnitConverter object to be used in the conversion.
unit
AnnUnit value that indicates the units to which to convert this AnnSize structure.
Converts this AnnSize structure to the specified units, and returns a new AnnSize structure.

Syntax

Visual Basic (Declaration) 
Public Function ConvertTo( _
   ByVal converter As AnnUnitConverter, _
   ByVal unit As AnnUnit _
) As AnnSize
Visual Basic (Usage)Copy Code
Dim instance As AnnSize
Dim converter As AnnUnitConverter
Dim unit As AnnUnit
Dim value As AnnSize
 
value = instance.ConvertTo(converter, unit)
C# 
public AnnSize ConvertTo( 
   AnnUnitConverter converter,
   AnnUnit unit
)
Managed Extensions for C++ 
public: AnnSize ConvertTo( 
   AnnUnitConverter* converter,
   AnnUnit unit
) 
C++/CLI 
public:
AnnSize ConvertTo( 
   AnnUnitConverter^ converter,
   AnnUnit unit
) 

Parameters

converter
Specifies the AnnUnitConverter object to be used in the conversion.
unit
AnnUnit value that indicates the units to which to convert this AnnSize structure.

Return Value

An AnnSize structure containing the converted value of this AnnSize structure.

Example

For an example, refer to op_Equality.

Remarks

The AnnUnitConverter object specified in converter is used to do the actual conversion. If converter is null (Nothing in Visual Basic), the default AnnUnitConverter performs the conversion, using 96 DPI.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features