'Declaration <DescriptionAttribute("Raised after the cell's background and foreground have been painted.")> <CategoryAttribute("Appearance")> Public Event Paint As CellViewerPaintEventHandler
'Usage Dim instance As CellViewerManager Dim handler As CellViewerPaintEventHandler AddHandler instance.Paint, handler
[Description("Raised after the cell's background and foreground have been painted.")] [Category("Appearance")] public event CellViewerPaintEventHandler Paint
Event Data
The event handler receives an argument of type CellViewerPaintEventArgs containing data related to this event. The following CellViewerPaintEventArgs 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 Xceed.Grid.DetailGrid objects. (Inherited from Xceed.Grid.GridPaintEventArgs) |
Cell | Gets the Xceed.Grid.Cell for which the viewer provides custom painting. |
ClientPosition | Gets the position of the grid's ClientRectangle in grid coordinates. (Inherited from Xceed.Grid.GridPaintEventArgs) |
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. (Inherited from Xceed.Grid.GridPaintEventArgs) |
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. (Inherited from Xceed.Grid.GridPaintEventArgs) |
DisplayVisualStyle | Gets the display visual style of the grid element. (Inherited from Xceed.Grid.GridPaintEventArgs) |
Graphics | Gets the Xceed.Grid.GridPaintEventArgs.Graphics object used to paint. (Inherited from Xceed.Grid.GridPaintEventArgs) |
Printing | Gets a boolean value indicating if the element is being printed. (Inherited from Xceed.Grid.GridPaintEventArgs) |
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