'Declaration <DescriptionAttribute("Raised after the grid element's background and foreground have been painted.")> <CategoryAttribute("Appearance")> Public Event Paint As GridPaintEventHandler
'Usage Dim instance As VisualGridElement Dim handler As GridPaintEventHandler AddHandler instance.Paint, handler
[Description("Raised after the grid element's background and foreground have been painted.")] [Category("Appearance")] public event GridPaintEventHandler Paint
Event Data
The event handler receives an argument of type GridPaintEventArgs containing data related to this event. The following GridPaintEventArgs properties provide information specific to this event.
Property | Description |
---|---|
BottomBorderWidth | Gets the width needed to draw the bottom border (if one is required) of the DetailGrid objects. |
ClientPosition | Gets the position of the grid's ClientRectangle in grid coordinates. |
ClientRectangle | Gets the client rectangle of the grid element. The rectangle represents the visible portion of the grid element and is in client coordinates. The X and Y coordinates are always 0,0. |
DisplayRectangle | Gets the display rectangle of the grid element. The rectangle is in client coordinates and the X and Y coordinates can be negative if the grid is scrolled. |
DisplayVisualStyle | Gets the display visual style of the grid element. |
Graphics | Gets the Graphics object used to paint. |
Printing | Gets a boolean value indicating if the element is being printed. |
Remarks
Painting must be done with the rectangles received in the GridPaintEventArgs otherwise the grid element will not print correctly.
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