[]
        
(Showing Draft Content)

C1.Win.FlexGrid.OwnerDrawCellEventArgs

OwnerDrawCellEventArgs Class

Provides data for the OwnerDrawCell event.

Inheritance
OwnerDrawCellEventArgs
Namespace: C1.Win.FlexGrid
Assembly: C1.Win.FlexGrid.8.dll
Syntax
public class OwnerDrawCellEventArgs : EventArgs

Constructors

Name Description
OwnerDrawCellEventArgs(C1FlexGridBase, Graphics, int, int, CellStyle, Rectangle, string, Image, DrawColorMode)

Initializes a new instance of the OwnerDrawCellEventArgs class.

Properties

Name Description
Bounds

Get the rectangle where the cell will be painted (in client coordinates).

Col

Get the column index of the cell being painted.

ColorMode

Drawing color mode.

Graphics

Gets the Graphics object used to draw the cell. Use this object to draw custom elements in the cell.

Handled

Gets or sets whether the event has finished drawing the cell.

Image

Gets or sets the image that will be displayed in the cell.

Measuring

Gets a value that determines if the event was fired only to measure the cell.

Row

Get the row index of the cell being painted.

Style

Sets or sets the CellStyle object used to paint the cell.

Text

Gets or sets the text that will be displayed in the cell.

Methods

Name Description
DrawCell()

Causes the grid to paint the whole cell.

DrawCell(DrawCellFlags)

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