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



converter
AnnUnitConverter object to be used in converting the value.
unit
Destination AnnUnit value indicating the unit of measure.

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

converter
AnnUnitConverter object to be used in converting the value.
unit
Destination AnnUnit value indicating the unit of measure.
Returns the value of the top edge of this AnnRectangle structure, converted to its equivalent in the specified AnnUnit unit of measure.

Syntax

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

Parameters

converter
AnnUnitConverter object to be used in converting the value.
unit
Destination AnnUnit value indicating the unit of measure.

Return Value

A value for the top edge of this AnnRectangle structure, converted to its equivalent in the specified AnnUnit unit of measure .

Example

For an example, refer to ConvertedLeft.

Remarks

The 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