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

A CellRenderer that draws Cell contents as CheckBoxes
Inheritance: CellRenderer
Afficher le fichier Open project: zhuangyy/Motion

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat System.Drawing.Rectangle

CheckBoxCellRenderer() public méthode

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

GetCheckBoxRendererData() protected méthode

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
Résultat CheckBoxRendererData

OnKeyDown() public méthode

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

OnKeyUp() public méthode

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

OnMouseDown() public méthode

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

OnMouseLeave() public méthode

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

OnMouseMove() public méthode

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

OnMouseUp() public méthode

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

OnPaint() protected méthode

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

OnPaintCell() public méthode

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