LEADTOOLS Windows Forms (Leadtools.WinForms assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
OnPaintBorder Method
See Also 
Leadtools.WinForms Namespace > RasterMagnifyGlass Class : OnPaintBorder Method



graphics
The Graphics object used to paint.
centerPoint
The center point of the Magnifying Glass rectangle
graphics
The Graphics object used to paint.
centerPoint
The center point of the Magnifying Glass rectangle
Occurs when the Magnifying Glass border is redrawn.

Syntax

Visual Basic (Declaration) 
Protected Overridable Sub OnPaintBorder( _
   ByVal graphics As Graphics, _
   ByVal centerPoint As Point _
) 
Visual Basic (Usage)Copy Code
Dim instance As RasterMagnifyGlass
Dim graphics As Graphics
Dim centerPoint As Point
 
instance.OnPaintBorder(graphics, centerPoint)
C# 
protected virtual void OnPaintBorder( 
   Graphics graphics,
   Point centerPoint
)
C++/CLI 
protected:
virtual void OnPaintBorder( 
   Graphics^ graphics,
   Point centerPoint
) 

Parameters

graphics
The Graphics object used to paint.
centerPoint
The center point of the Magnifying Glass rectangle

Example

Refer to OnPaintCrosshair example.

Remarks

You can override this method in order to paint your own border for the Magnifying Glass. Call the base class implementation for the default behavior.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also