C1.Win.C1FlexGrid Namespace : DrawCellFlags Enumeration |
'Declaration
<FlagsAttribute()> Public Enum DrawCellFlags Inherits System.Enum
'Usage
Dim instance As DrawCellFlags
[Flags()] public enum DrawCellFlags : System.Enum
[Flags()] public enum class DrawCellFlags : public 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.C1FlexGrid.DrawCellFlags
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2