Leadtools.MedicalViewer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
MedicalViewerCellPosition Class
See Also  Members   Example 
Leadtools.MedicalViewer Namespace : MedicalViewerCellPosition Class




Represents a class that is used to indicate the (row, column) position of the cell inside the MedicalViewer control.

Syntax

Visual Basic (Declaration) 
Public Class MedicalViewerCellPosition 
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerCellPosition
C# 
public class MedicalViewerCellPosition 
Managed Extensions for C++ 
public __gc class MedicalViewerCellPosition 
C++/CLI 
public ref class MedicalViewerCellPosition 

Example

Show some statistics about the medical viewer and the first cell

Visual BasicCopy Code
Private Sub GetStatisticalInformation(ByVal medicalViewer As MedicalViewer)
   Console.WriteLine("Number of actions that have been added to the medical viewer = " & medicalViewer.ActionCount)
   Console.WriteLine("The coordinates of the first cell are : " & medicalViewer.Cells(0).Location.X & ", " & medicalViewer.Cells(0).Location.Y & ", " & medicalViewer.Cells(0).Size.Width & ", " & medicalViewer.Cells(0).Size.Height)
   Console.WriteLine("The Position in term of row / columns of the first cell is : " & medicalViewer.Cells(0).Position.Row & ", " & medicalViewer.Cells(0).Position.Column)
End Sub


<Test> _
Public Sub MedicalViewerStatisticsExample()
   Dim form As MainForm2 = New MainForm2()
   GetStatisticalInformation(form._medicalViewer)
   form.ShowDialog()
End Sub
C#Copy Code
void GetStatisticalInformation(MedicalViewer medicalViewer) 

   Console.WriteLine("Number of actions that have been added to the medical viewer = " + medicalViewer.ActionCount);  
   Console.WriteLine("The coordinates of the first cell are : " + medicalViewer.Cells[0].Location.X + ", " + medicalViewer.Cells[0].Location.Y + ", " + medicalViewer.Cells[0].Size.Width + ", " + medicalViewer.Cells[0].Size.Height);  
   Console.WriteLine("The Position in term of row / columns of the first cell is : " + medicalViewer.Cells[0].Position.Row + ", " + medicalViewer.Cells[0].Position.Column); 

 
 
 
public void MedicalViewerStatisticsExample() 

   MainForm2 form = new MainForm2(); 
   GetStatisticalInformation(form._medicalViewer); 
   form.ShowDialog(); 
}

Inheritance Hierarchy

System.Object
   Leadtools.MedicalViewer.MedicalViewerCellPosition

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