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

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

Public Methods

Method Description
CheckBoxCellRenderer ( ) : System

Initializes a new instance of the CheckBoxCellRenderer class with default settings

OnKeyDown ( CellKeyEventArgs e ) : void

Raises the KeyDown event

OnKeyUp ( CellKeyEventArgs e ) : void

Raises the KeyUp event

OnMouseDown ( CellMouseEventArgs e ) : void

Raises the MouseDown event

OnMouseLeave ( CellMouseEventArgs e ) : void

Raises the MouseLeave event

OnMouseMove ( XPTable e ) : void

Raises the MouseMove event

OnMouseUp ( CellMouseEventArgs e ) : void

Raises the MouseUp event

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the PaintCell event

Protected Methods

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

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

GetCheckBoxRendererData ( Cell cell ) : CheckBoxRendererData

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

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

Private Methods

Method Description
ValidateCheckState ( Cell cell, CheckBoxRendererData rendererData ) : void

Corrects any differences between the check state of the specified Cell and the check state in its rendererData

Method Details

CalcCheckRect() protected method

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

CheckBoxCellRenderer() public method

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

GetCheckBoxRendererData() protected method

Gets the CheckBoxCellRenderer specific data used by the Renderer from the specified Cell
protected GetCheckBoxRendererData ( Cell cell ) : CheckBoxRendererData
cell ZForge.Controls.XPTable.Models.Cell The Cell to get the CheckBoxCellRenderer data for
return CheckBoxRendererData

OnKeyDown() public method

Raises the KeyDown event
public OnKeyDown ( CellKeyEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellKeyEventArgs A CellKeyEventArgs that contains the event data
return void

OnKeyUp() public method

Raises the KeyUp event
public OnKeyUp ( CellKeyEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellKeyEventArgs A CellKeyEventArgs that contains the event data
return void

OnMouseDown() public method

Raises the MouseDown event
public OnMouseDown ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
return void

OnMouseLeave() public method

Raises the MouseLeave event
public OnMouseLeave ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
return void

OnMouseMove() public method

Raises the MouseMove event
public OnMouseMove ( XPTable e ) : void
e XPTable A CellMouseEventArgs that contains the event data
return void

OnMouseUp() public method

Raises the MouseUp event
public OnMouseUp ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs A CellMouseEventArgs that contains the event data
return void

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