'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.
'Declaration Public Overloads Sub DrawOutlineButton( _ ByVal flags As DrawCellFlags _ )
public void DrawOutlineButton( DrawCellFlags flags )
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) 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.