X Property

Summary
Gets or sets the value that indicates the X offset of the image.
Syntax
C#
C++/CLI
public int X { get; set; } 
            public: 
property int X { 
   int get(); 
   void set (    int ); 
} 

Property Value

Value that indicates the X offset of the image. In other words, it is the horizontal distance between the center of the image and the center of the cell. The default value is 0.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
 
public void MedicalViewerOffset2() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   MedicalViewerOffset offset = new MedicalViewerOffset(); 
   MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]); 
   offset.X = 50; 
   offset.Y = 50; 
   cell.SetActionProperties(MedicalViewerActionType.Offset, offset, 0); 
   offset.Dispose(); 
   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.