C# Class ZForge.Controls.XPTable.Renderers.ColorCellRenderer

A CellRenderer that draws Cell contents as Buttons
Inheritance: DropDownCellRenderer
Exibir arquivo Open project: zhuangyy/Motion

Public Methods

Method Description
ColorCellRenderer ( ) : System

Initializes a new instance of the ColorCellRenderer class with default settings

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the PaintCell event

Protected Methods

Method Description
CalcColorRect ( RowAlignment rowAlignment, ColumnAlignment columnAlignment ) : Rectangle

Returns a Rectangle that specifies the size and location of the Color rectangle

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

Method Details

CalcColorRect() protected method

Returns a Rectangle that specifies the size and location of the Color rectangle
protected CalcColorRect ( RowAlignment rowAlignment, ColumnAlignment columnAlignment ) : Rectangle
rowAlignment RowAlignment The alignment of the Cells Row
columnAlignment ColumnAlignment The alignment of the Cells Column
return System.Drawing.Rectangle

ColorCellRenderer() public method

Initializes a new instance of the ColorCellRenderer class with default settings
public ColorCellRenderer ( ) : System
return System

OnPaint() protected method

Raises the Paint event
protected OnPaint ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs A PaintCellEventArgs that contains the event data
return void

OnPaintCell() public method

Raises the PaintCell event
public OnPaintCell ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs A PaintCellEventArgs that contains the event data
return void