Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid Namespace / VisualGridElement Class / PaintForeground Method
A GridPaintEventArgs that contains the event data.


PaintForeground Method (VisualGridElement)
Paints the foreground of the grid element.
Syntax
'Declaration
 
Protected Friend Overridable Sub PaintForeground( _
   ByVal e As GridPaintEventArgs _
) 
 
'Usage
 
Dim instance As VisualGridElement
Dim e As GridPaintEventArgs
 
instance.PaintForeground(e)

Parameters

e
A GridPaintEventArgs that contains the event data.
Remarks

Painting must be done with the rectangles received in the GridPaintEventArgs; otherwise, the grid element will not print correctly.

When painting, the point conversion methods such as PointToClient should not be used.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also