ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.5.2 Assembly / C1.Win.C1FlexGrid Namespace / DrawCellFlags Enumeration

In This Topic
    DrawCellFlags Enumeration
    In This Topic
    Specifies which elements of the cell should be drawn by the grid.
    Syntax
    'Declaration
     
    Public Enum DrawCellFlags 
       Inherits System.Enum
    public enum DrawCellFlags : System.Enum 
    Members
    MemberDescription
    AllDraw all cell elements (background, border, and contents).
    BackgroundDraw the cell background.
    BorderDraw the cell border.
    ContentDraw the cell content (text, images, check boxes, etc).
    Remarks

    This enumeration is used when rendering owner-drawn cells.

    If you set the System.Windows.Forms.DrawMode property to DrawModeEnum.OwnerDraw, the grid will fire the C1FlexGridBase.OwnerDrawCell event to allow custom cell drawing.

    The OwnerDrawCellEventArgs parameter passed to the event handler has a OwnerDrawCellEventArgs.DrawCell method that allows you to use the standard drawing routines for rendering parts of the cell. For example, you can paint a custom background and use the standard drawing routines for the cell borders and content.

    See the C1FlexGridBase.OwnerDrawCell event for an example.

    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             C1.Win.C1FlexGrid.DrawCellFlags

    See Also