FlexGrid for WinForms | ComponentOne
C1.Win.FlexGrid 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 C1FlexGridBase.DrawOutlineButton 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