ComponentOne FlexPivot for WinForms
C1.Win.C1FlexGrid.4.8 Assembly / C1.Win.C1FlexGrid Namespace / OwnerDrawOutlineButtonEventArgs Class / DrawOutlineButton Method / DrawOutlineButton(DrawCellFlags) Method
DrawCellFlags that specifies the parts of the outline button.

In This Topic
    DrawOutlineButton(DrawCellFlags) Method
    In This Topic
    Causes the grid to paint parts of the outline button (background, foreground, border, etc.)
    Syntax
    'Declaration
     
    Public Overloads Sub DrawOutlineButton( _
       ByVal flags As DrawCellFlags _
    ) 
    public void DrawOutlineButton( 
       DrawCellFlags flags
    )

    Parameters

    flags
    DrawCellFlags that specifies the parts of the outline button.
    Remarks

    This method is typically called in C1.Win.C1FlexGrid.C1FlexGridBase.DrawOutlineButton(System.Drawing.Graphics,System.Int32,System.Int32,C1.Win.C1FlexGrid.Util.Styles.Style,System.Drawing.Rectangle,System.String,System.Drawing.Image,C1.Win.C1FlexGrid.DrawCellFlags,C1.Win.C1FlexGrid.DrawColorMode) handlers when the code intends to draw some elements of the outline button but not everything.

    For example, the code may want to draw a custom border only. In this case, it could call e.DrawOutlineButton(DrawCellFlags.Background | DrawCellFlags.Content) to draw the cell background and content, and later draw the custom border.

    If the owner-draw code draws the entire outline button (including the background), then there's no need to call e.DrawOutlineButton at all.

    See Also