UserMode Property

Summary
Gets or sets the user mode.
Syntax
C#
C++/CLI
public MedicalViewerUserMode UserMode { get; set; } 
            public: 
property MedicalViewerUserMode UserMode { 
   MedicalViewerUserMode get(); 
   void set (    MedicalViewerUserMode ); 
} 

Property Value

The user mode.

Example
C#
using Leadtools.MedicalViewer; 
using Leadtools.Codecs; 
using Leadtools; 
 
public void MedicorViewerLayoutExample1() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
 
   // Set the LayoutOptions 
   medicalViewer.LayoutOptions.AllowOverlappingCells = false; 
   medicalViewer.LayoutOptions.DesignTool = MedicalViewerDesignTool.Draw; 
   medicalViewer.LayoutOptions.GridSize = new Size(8, 8); 
   medicalViewer.LayoutOptions.RectBackColor = Color.Yellow; 
   medicalViewer.LayoutOptions.RectForeColor = Color.Red; 
   medicalViewer.LayoutOptions.ShowGrid = true; 
   medicalViewer.LayoutOptions.ShowPosition = true; 
   medicalViewer.LayoutOptions.SnapToGrid = true; 
   medicalViewer.LayoutOptions.UserMode = MedicalViewerUserMode.Design; 
 
   // 
   // Show only if created in layout mode 
   // 
   if (medicalViewer.GridMode == false) 
      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.