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.
| 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 unitsTarget Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code