[]
        
(Showing Draft Content)

C1.Win.FlexGrid.OwnerDrawOutlineButtonEventArgs.DrawOutlineButton

DrawOutlineButton Method

DrawOutlineButton(DrawCellFlags)

Causes the grid to paint parts of the outline button (background, foreground, border, etc.)

Declaration
public void DrawOutlineButton(DrawCellFlags flags)
Parameters
Type Name Description
DrawCellFlags flags

DrawCellFlags that specifies the parts of the outline button.

Remarks

This method is typically called in C1.Win.FlexGrid.C1FlexGridBase.DrawOutlineButton(System.Drawing.Graphics,System.Int32,System.Int32,C1.Win.FlexGrid.Util.Styles.Style,System.Drawing.Rectangle,System.String,System.Drawing.Image,C1.Win.FlexGrid.DrawCellFlags,C1.Win.FlexGrid.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.

DrawOutlineButton()

Causes the grid to paint the whole outline button.

Declaration
public void DrawOutlineButton()