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

GetRulerLength Method






Starting point of the ruler.
Ending point of the ruler.
Unit of measurement to use.
An AnnUnitConverter object to use when converting the units if necessary.
Gets the length of the ruler between two points.
Syntax
public static AnnLength GetRulerLength( 
   AnnPoint startPoint,
   AnnPoint endPoint,
   AnnUnit measurementUnit,
   AnnUnitConverter converter
)
'Declaration
 
Public Shared Function GetRulerLength( _
   ByVal startPoint As AnnPoint, _
   ByVal endPoint As AnnPoint, _
   ByVal measurementUnit As AnnUnit, _
   ByVal converter As AnnUnitConverter _
) As AnnLength
'Usage
 
Dim startPoint As AnnPoint
Dim endPoint As AnnPoint
Dim measurementUnit As AnnUnit
Dim converter As AnnUnitConverter
Dim value As AnnLength
 
value = AnnRulerObject.GetRulerLength(startPoint, endPoint, measurementUnit, converter)
public static AnnLength GetRulerLength( 
   AnnPoint startPoint,
   AnnPoint endPoint,
   AnnUnit measurementUnit,
   AnnUnitConverter converter
)
 function Leadtools.Annotations.AnnRulerObject.GetRulerLength( 
   startPoint ,
   endPoint ,
   measurementUnit ,
   converter 
)
public:
static AnnLength GetRulerLength( 
   AnnPoint startPoint,
   AnnPoint endPoint,
   AnnUnit measurementUnit,
   AnnUnitConverter^ converter
) 

Parameters

startPoint
Starting point of the ruler.
endPoint
Ending point of the ruler.
measurementUnit
Unit of measurement to use.
converter
An AnnUnitConverter object to use when converting the units if necessary.

Return Value

The length of the ruler in measurementUnit units
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

AnnRulerObject Class
AnnRulerObject Members

 

 


Products | Support | Contact Us | Copyright Notices

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