SimpleRuler Property

Summary
Indicates whether to draw the ruler along with the tick marks.
Syntax
C#
C++/CLI
public bool SimpleRuler { get; set; } 
            public: 
property bool SimpleRuler { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true to draw the ruler without tick marks (which means that the ruler will simply be a line); otherwise, false.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
 
public void MedicalViewerAnnotationRulerExample() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]); 
 
   MedicalViewerAnnotationRuler ruler = new MedicalViewerAnnotationRuler(); 
   ruler.AnnotationColor = Color.FromArgb(0, 0, 255); 
   ruler.Flags = MedicalViewerAnnotationFlags.AllObjects; 
   ruler.SimpleRuler = true; 
   cell.SetActionProperties(MedicalViewerActionType.AnnotationRuler, ruler); 
 
   myForm.ShowDialog(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.MedicalViewer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.