C# Class ZForge.Controls.XPTable.Events.PaintCellEventArgs

Provides data for the PaintCell event
Inheritance: PaintEventArgs
Show file Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
PaintCellEventArgs ( Graphics g, Cell cell, Table table, int row, int column, bool selected, bool focused, bool sorted, bool editable, bool enabled, Rectangle cellRect ) : System

Initializes a new instance of the PaintCellEventArgs class with the specified graphics, table, row index, column index, selected value, focused value, mouse value and clipping rectangle

PaintCellEventArgs ( Graphics g, Rectangle cellRect ) : System

Initializes a new instance of the PaintCellEventArgs class with the specified graphics and clipping rectangle

Private Methods

Method Description
SetCell ( Cell cell ) : void

SetCellRect ( Rectangle cellRect ) : void

SetColumn ( int column ) : void

SetEditable ( bool editable ) : void

SetEnabled ( bool enabled ) : void

SetFocused ( bool focused ) : void

SetRow ( int row ) : void

SetSelected ( bool selected ) : void

SetSorted ( bool sorted ) : void

SetTable ( Table table ) : void

Method Details

PaintCellEventArgs() public method

Initializes a new instance of the PaintCellEventArgs class with the specified graphics, table, row index, column index, selected value, focused value, mouse value and clipping rectangle
public PaintCellEventArgs ( Graphics g, Cell cell, Table table, int row, int column, bool selected, bool focused, bool sorted, bool editable, bool enabled, Rectangle cellRect ) : System
g System.Drawing.Graphics The Graphics used to paint the Cell
cell ZForge.Controls.XPTable.Models.Cell The Cell to be painted
table ZForge.Controls.XPTable.Models.Table The Table the Cell belongs to
row int The Row index of the Cell
column int The Column index of the Cell
selected bool Specifies whether the Cell is selected
focused bool Specifies whether the Cell has focus
sorted bool Specifies whether the Cell's Column is sorted
editable bool Specifies whether the Cell is able to be edited
enabled bool Specifies whether the Cell is enabled
cellRect System.Drawing.Rectangle The rectangle in which to paint the Cell
return System

PaintCellEventArgs() public method

Initializes a new instance of the PaintCellEventArgs class with the specified graphics and clipping rectangle
public PaintCellEventArgs ( Graphics g, Rectangle cellRect ) : System
g System.Drawing.Graphics The Graphics used to paint the Cell
cellRect System.Drawing.Rectangle The Rectangle that represents the rectangle /// in which to paint
return System