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




Represents the class that contains the properties of the offset action.

Syntax

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

Example

Change the offset of the image of the first cell

Visual BasicCopy Code
<Test> _
Public Sub MedicalViewerOffset1()
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim medicalViewer As MedicalViewer = myForm.Viewer
   Dim offset As MedicalViewerOffset = CType(medicalViewer.GetActionProperties(MedicalViewerActionType.Offset, 0), MedicalViewerOffset)
   offset.X += 50
   offset.Y += 50
   medicalViewer.SetActionProperties(MedicalViewerActionType.Offset, offset, 0)
   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerOffset1() 

   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   MedicalViewerOffset offset = (MedicalViewerOffset)medicalViewer.GetActionProperties(MedicalViewerActionType.Offset, 0); 
   offset.X += 50; 
   offset.Y += 50; 
   medicalViewer.SetActionProperties(MedicalViewerActionType.Offset, offset, 0); 
   myForm.ShowDialog(); 
}

Remarks

To set the properties of the offset action, call the SetActionProperties method, and to retrieve the properties call the GetActionProperties method.

The mouse controls the actions as follows:

  • Click and drag the mouse to start the effect. When the assigned mouse button is released the action ends.
  • Dragging the mouse to the left moves the image to the left.
  • Dragging the mouse to the right moves the image to the right.
  • Dragging the mouse up moves the image up.
  • Dragging the mouse down moves the image down.

Inheritance Hierarchy

System.Object
   Leadtools.MedicalViewer.MedicalViewerBaseAction
      Leadtools.MedicalViewer.MedicalViewerCommonActions
         Leadtools.MedicalViewer.MedicalViewerOffset

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