Leadtools.MedicalViewer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
CalibrateRuler(Double,MedicalViewerMeasurementUnit,Int32) Method
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewerCell Class > CalibrateRuler Method : CalibrateRuler(Double,MedicalViewerMeasurementUnit,Int32) Method




distance
The new length of the annotation ruler.
measurementUnit
The unit of measure
subCellindex
Index of the sub-cell being calibrated. Pass -1 to calibrate all the sub-cells; pass -2 to calibrate the active sub-cell.
Changes the length of the selected annotation ruler according to the new unit of measure.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub CalibrateRuler( _
   ByVal distance As Double, _
   ByVal measurementUnit As MedicalViewerMeasurementUnit, _
   ByVal subCellindex As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCell
Dim distance As Double
Dim measurementUnit As MedicalViewerMeasurementUnit
Dim subCellindex As Integer
 
instance.CalibrateRuler(distance, measurementUnit, subCellindex)
C# 
public void CalibrateRuler( 
   double distance,
   MedicalViewerMeasurementUnit measurementUnit,
   int subCellindex
)
Managed Extensions for C++ 
public: void CalibrateRuler( 
   double distance,
   MedicalViewerMeasurementUnit measurementUnit,
   int subCellindex
) 
C++/CLI 
public:
void CalibrateRuler( 
   double distance,
   MedicalViewerMeasurementUnit measurementUnit,
   int subCellindex
) 

Parameters

distance
The new length of the annotation ruler.
measurementUnit
The unit of measure
subCellindex
Index of the sub-cell being calibrated. Pass -1 to calibrate all the sub-cells; pass -2 to calibrate the active sub-cell.

Example

For an example, refer to CalibrateRuler

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.MedicalViewer requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features