Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.12.8
|
Leadtools.MedicalViewer Namespace > MedicalViewerOffset Class > MedicalViewerOffset Constructor : MedicalViewerOffset Constructor() |
This examples changes the offset of the image of the first cell
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.MedicalViewer <TestMethod()> _ Public Sub MedicalViewerOffset2() Dim myForm As MedicalViewerForm = GetMedicalControl() Dim medicalViewer As MedicalViewer = myForm.Viewer Dim offset As MedicalViewerOffset = New MedicalViewerOffset() Dim cell As MedicalViewerMultiCell = CType(medicalViewer.Cells(0), MedicalViewerMultiCell) offset.X = 50 offset.Y = 50 cell.SetActionProperties(MedicalViewerActionType.Offset, offset, 0) offset.Dispose() myForm.ShowDialog() End Sub
using Leadtools; using Leadtools.Codecs; using Leadtools.MedicalViewer; [TestMethod] 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(); }