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(Int32,Int32,Int32,Boolean,Cursor) |
This example changes the offset of the image of the first cell
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.MedicalViewer <TestMethod()> _ Public Sub MedicalViewerOffset4() Dim myForm As MedicalViewerForm = GetMedicalControl() Dim medicalViewer As MedicalViewer = myForm.Viewer Dim offset As MedicalViewerOffset = New MedicalViewerOffset(50, 50, 100, True, Cursors.SizeAll) Dim cell As MedicalViewerMultiCell = CType(medicalViewer.Cells(0), MedicalViewerMultiCell) cell.SetActionProperties(MedicalViewerActionType.Offset, offset, 0) offset.Dispose() myForm.ShowDialog() End Sub
using Leadtools; using Leadtools.Codecs; using Leadtools.MedicalViewer; [TestMethod] public void MedicalViewerOffset4() { MedicalViewerForm myForm = GetMedicalControl(); MedicalViewer medicalViewer = myForm.Viewer; MedicalViewerOffset offset = new MedicalViewerOffset(50, 50, 100, true, Cursors.SizeAll); MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]); cell.SetActionProperties(MedicalViewerActionType.Offset, offset, 0); offset.Dispose(); myForm.ShowDialog(); }