Represents the class that contains the magnifying glass properties.
Syntax
Example
Change the appearance of the magnify glass
Visual Basic | Copy Code |
---|
<Test> _
Public Sub MedicalViewerMagnifyGlassExample()
Dim myForm As MedicalViewerForm = GetMedicalControl()
Dim medicalViewer As MedicalViewer = myForm.Viewer
Dim magnifyGlass As MedicalViewerMagnifyGlass = New MedicalViewerMagnifyGlass()
magnifyGlass.Border3D = True
magnifyGlass.Elliptical = False
magnifyGlass.Height = 200
magnifyGlass.Width = 200
magnifyGlass.Zoom = 400
magnifyGlass.Crosshair = MedicalViewerCrosshairStyle.Invert
magnifyGlass.BorderSize = 3
magnifyGlass.PenColor = Color.FromArgb(255, 0, 0)
medicalViewer.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass)
myForm.ShowDialog()
End Sub |
C# | Copy Code |
---|
public void MedicalViewerMagnifyGlassExample() { MedicalViewerForm myForm = GetMedicalControl(); MedicalViewer medicalViewer = myForm.Viewer; MedicalViewerMagnifyGlass magnifyGlass = new MedicalViewerMagnifyGlass(); magnifyGlass.Border3D = true; magnifyGlass.Elliptical = false; magnifyGlass.Height = 200; magnifyGlass.Width = 200; magnifyGlass.Zoom = 400; magnifyGlass.Crosshair = MedicalViewerCrosshairStyle.Invert; magnifyGlass.BorderSize = 3; magnifyGlass.PenColor = Color.FromArgb(255, 0, 0); medicalViewer.SetActionProperties(MedicalViewerActionType.MagnifyGlass, magnifyGlass); 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