LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
ConvertTo Method
See Also 
Leadtools.Annotations Namespace > AnnRectangle Structure : ConvertTo Method



converter
Specifies the AnnUnitConverter object to be used in the conversion.
unit
Specifies the destination AnnUnit value for the unit of measure for the conversion.

The ConvertTo Method is available in LEADTOOLS Document and Medical Imaging toolkits.

converter
Specifies the AnnUnitConverter object to be used in the conversion.
unit
Specifies the destination AnnUnit value for the unit of measure for the conversion.
Converts this AnnRectangle structure with the specified unit of measure to another AnnRectangle structure.

Syntax

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

Parameters

converter
Specifies the AnnUnitConverter object to be used in the conversion.
unit
Specifies the destination AnnUnit value for the unit of measure for the conversion.

Return Value

An AnnRectangle structure containing the converted values of this AnnRectangle structure.

Example

For an example, refer to Equality.

Remarks

converter is used to do the actual conversion. If converter is null (Nothing in Visual Basic), the default AnnUnitConverter is used (in other words, conversion will be done based on the default 96 DPI).

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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