LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

GetLogicalAnnPoint Method






The X position to be converted.
The Y position to be converted.
The unit that will be used in converting x and y values to AnnPoint.
Gets the logical AnnPoint for the specified x, y and unit for this designer.
Syntax
protected AnnPoint GetLogicalAnnPoint( 
   int x,
   int y,
   AnnUnit unit
)
'Declaration
 
Protected Function GetLogicalAnnPoint( _
   ByVal x As Integer, _
   ByVal y As Integer, _
   ByVal unit As AnnUnit _
) As AnnPoint
'Usage
 
Dim instance As AnnDesigner
Dim x As Integer
Dim y As Integer
Dim unit As AnnUnit
Dim value As AnnPoint
 
value = instance.GetLogicalAnnPoint(x, y, unit)
protected AnnPoint GetLogicalAnnPoint( 
   int x,
   int y,
   AnnUnit unit
)
 function Leadtools.Annotations.AnnDesigner.GetLogicalAnnPoint( 
   x ,
   y ,
   unit 
)
protected:
AnnPoint GetLogicalAnnPoint( 
   int x,
   int y,
   AnnUnit unit
) 

Parameters

x
The X position to be converted.
y
The Y position to be converted.
unit
The unit that will be used in converting x and y values to AnnPoint.

Return Value

The AnnPoint which contains the converted x and y values using the specified unit for this designer.
Remarks
This is a helper method that can be used by derived classes to convert a physical point (obtained usually through the mouse events) to a logical point on the current Container object.
Example
For more information and an example, refer to Implement User Defined Objects with LEADTOOLS Annotations
Requirements

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

See Also

Reference

AnnDesigner Class
AnnDesigner Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.