Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Viewers Namespace / CellViewerManager Class / Paint Event


    Paint Event (CellViewerManager)
    Raised after the cell's background and foreground have been painted.
    Syntax
    '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
    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.

    PropertyDescription
    Gets the width needed to draw the bottom border (if one is required) of the Xceed.Grid.DetailGrid objects. (Inherited from Xceed.Grid.GridPaintEventArgs)
    Gets the Xceed.Grid.Cell for which the viewer provides custom painting.  
    Gets the position of the grid's ClientRectangle in grid coordinates. (Inherited from Xceed.Grid.GridPaintEventArgs)
    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)
    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)
    Gets the display visual style of the grid element. (Inherited from Xceed.Grid.GridPaintEventArgs)
    Gets the Xceed.Grid.GridPaintEventArgs.Graphics object used to paint. (Inherited from Xceed.Grid.GridPaintEventArgs)
    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