LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
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.

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

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
)
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 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