Represents the class that contains the properties of the offset action.
Syntax
Example
Change the offset of the image of the first cell
Visual Basic | Copy 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
Inheritance Hierarchy
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