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




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.
Gets the length of the ruler between two points.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetRulerLength( _
   ByVal startPoint As AnnPoint, _
   ByVal endPoint As AnnPoint, _
   ByVal measurementUnit As AnnUnit, _
   ByVal converter As AnnUnitConverter _
) As AnnLength
Visual Basic (Usage)Copy Code
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)
C# 
public static AnnLength GetRulerLength( 
   AnnPoint startPoint,
   AnnPoint endPoint,
   AnnUnit measurementUnit,
   AnnUnitConverter converter
)
Managed Extensions for C++ 
public: static AnnLength GetRulerLength( 
   AnnPoint startPoint,
   AnnPoint endPoint,
   AnnUnit measurementUnit,
   AnnUnitConverter* converter
) 
C++/CLI 
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: 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