MedicalViewerOffset Class

Summary

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

Syntax
C#
VB
C++
public class MedicalViewerOffset : MedicalViewerCommonActions 
  
Public Class MedicalViewerOffset  
   Inherits MedicalViewerCommonActions 
   Implements System.IDisposable  
            public ref class MedicalViewerOffset : public MedicalViewerCommonActions, System.IDisposable   

Remarks

To set the properties of the offset action, call the MedicalViewerBaseCell.SetActionProperties method. To retrieve the properties call the MedicalViewerBaseCell.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.

Example

This example changes the offset of the image of the first cell

C#
VB
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.MedicalViewer; 
 
public void MedicalViewerOffset1() 
{ 
   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
   MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]); 
   MedicalViewerOffset offset = (MedicalViewerOffset)cell.GetActionProperties(MedicalViewerActionType.Offset, 0); 
   offset.X += 50; 
   offset.Y += 50; 
   cell.SetActionProperties(MedicalViewerActionType.Offset, offset, 0); 
   offset.Dispose(); 
 
   myForm.ShowDialog(); 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.MedicalViewer 
 
Public Sub MedicalViewerOffset1() 
   Dim myForm As MedicalViewerForm = GetMedicalControl() 
   Dim medicalViewer As MedicalViewer = myForm.Viewer 
   Dim cell As MedicalViewerMultiCell = CType(medicalViewer.Cells(0), MedicalViewerMultiCell) 
   Dim offset As MedicalViewerOffset = CType(cell.GetActionProperties(MedicalViewerActionType.Offset, 0), MedicalViewerOffset) 
   offset.X += 50 
   offset.Y += 50 
   cell.SetActionProperties(MedicalViewerActionType.Offset, offset, 0) 
   offset.Dispose() 
 
   myForm.ShowDialog() 
End Sub 

Requirements

Target Platforms

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

Leadtools.MedicalViewer Assembly