'Declaration
Public Enum DrawCellFlags Inherits System.Enum
public enum DrawCellFlags : System.Enum
'Declaration
Public Enum DrawCellFlags Inherits System.Enum
public enum DrawCellFlags : System.Enum
Member | Description |
---|---|
All | Draw all cell elements (background, border, and contents). |
Background | Draw the cell background. |
Border | Draw the cell border. |
Content | Draw the cell content (text, images, check boxes, etc). |
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.
System.Object
System.ValueType
System.Enum
C1.Win.FlexGrid.DrawCellFlags