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

A CellRenderer that draws Cell contents as controls
Inheritance: CellRenderer
Mostrar archivo Open project: zhuangyy/Motion

Public Methods

Method Description
ControlCellRenderer ( ) : System

Initializes a new instance of the ControlCellRenderer class with default settings

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the PaintCell event

Protected Methods

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

Gets the Rectangle that specifies the Size and Location of the control contained in the current Cell

GetControlRendererData ( Cell cell ) : ControlRendererData

Gets the ControlRendererData specific data used by the Renderer from the specified Cell

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

OnPaintBackground ( PaintCellEventArgs e ) : void

We don't want any background.

Method Details

CalcControlRect() protected method

Gets the Rectangle that specifies the Size and Location of the control contained in the current Cell
protected CalcControlRect ( RowAlignment rowAlignment, ColumnAlignment columnAlignment ) : Rectangle
rowAlignment RowAlignment
columnAlignment ColumnAlignment
return System.Drawing.Rectangle

ControlCellRenderer() public method

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

GetControlRendererData() protected method

Gets the ControlRendererData specific data used by the Renderer from the specified Cell
protected GetControlRendererData ( Cell cell ) : ControlRendererData
cell ZForge.Controls.XPTable.Models.Cell
return ControlRendererData

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

OnPaintBackground() protected method

We don't want any background.
protected OnPaintBackground ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs
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