MedicalViewerBaseCell Constructor(MedicalViewerLayoutPosition)

Summary
Initializes a new instance of the MedicalViewerCell class.
Syntax
C#
C++/CLI
            public: 
MedicalViewerBaseCell(  
   MedicalViewerLayoutPosition^ location 
) 

Parameters

location
The location of the cell in the viewer.

Remarks

The position is represented by four dimensionless floating point values, in the range 0.0 to 1.0. The Lower left hand position represents the (0.0,0.0).

Example
C#
using Leadtools.MedicalViewer; 
using Leadtools.Codecs; 
using Leadtools; 
 
public void MedicorViewerLayoutExample2() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   float[] l = { 0.06F, 0.55F }; 
   float[] t = { 0.75F, 0.75F }; 
   float[] r = { 0.45F, 0.94F }; 
   float[] b = { 0.25F, 0.25F }; 
 
   // 
   // Add some cells to the viewer 
   // 
   for (int i = 0; i < l.Length; i++) 
   { 
      MedicalViewerMultiCell cell = new MedicalViewerMultiCell(); 
 
      try 
      { 
         cell.LayoutPosition = new MedicalViewerLayoutPosition(l[i], t[i], r[i], b[i]); 
         cell.FitImageToCell = true; 
         medicalViewer.Cells.Add(cell); 
      } 
      catch (Exception e) 
      { 
         MessageBox.Show(e.Message); 
      } 
   } 
 
   // 
   // Save the layout 
   // 
   FileInfo f = new FileInfo("layout.xml"); 
   FileStream stream = f.Create(); 
 
   medicalViewer.SaveLayout(stream); 
 
   // 
   // Reload the cells 
   // 
   medicalViewer.Cells.Clear(); 
   stream.Seek(0, SeekOrigin.Begin); 
   medicalViewer.LoadLayout(stream); 
   // 
   // Show only if created in layout mode 
   // 
   if (medicalViewer.GridMode == false) 
      myForm.ShowDialog(); 
} 
Requirements

Target Platforms

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

Leadtools.MedicalViewer Assembly

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