Visual Basic (Declaration) | |
---|---|
Protected Overridable Sub OnPaintBorder( _ ByVal graphics As Graphics, _ ByVal centerPoint As Point _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
|
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
Refer to OnPaintCrosshair example.
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.
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