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

A base class for drawing Cells contents as numbers
Inheritance: CellRenderer
Afficher le fichier Open project: zhuangyy/Motion

Méthodes publiques

Méthode Description
NumberCellRenderer ( ) : System

Initializes a new instance of the NumberCellRenderer class with default settings

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
CalcButtonBounds ( ) : Rectangle

Returns a Rectangle that specifies the size and location of the up and down buttons

GetDownButtonBounds ( ) : Rectangle

Returns a Rectangle that specifies the size and location of the down button

GetNumberRendererData ( Cell cell ) : NumberRendererData

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

GetUpButtonBounds ( ) : Rectangle

Returns a Rectangle that specifies the size and location of the up button

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

OnPaintBackground ( PaintCellEventArgs e ) : void

Raises the PaintBackground event

Private Methods

Méthode Description
TableUsingNumericCellEditor ( Table table, CellPos cellPos ) : bool

Gets whether the specified Table is using a NumericCellEditor to edit the Cell at the specified CellPos

Method Details

CalcButtonBounds() protected méthode

Returns a Rectangle that specifies the size and location of the up and down buttons
protected CalcButtonBounds ( ) : Rectangle
Résultat System.Drawing.Rectangle

GetDownButtonBounds() protected méthode

Returns a Rectangle that specifies the size and location of the down button
protected GetDownButtonBounds ( ) : Rectangle
Résultat System.Drawing.Rectangle

GetNumberRendererData() protected méthode

Gets the NumberRendererData specific data used by the Renderer from the specified Cell
protected GetNumberRendererData ( Cell cell ) : NumberRendererData
cell ZForge.Controls.XPTable.Models.Cell The Cell to get the NumberRendererData data for
Résultat NumberRendererData

GetUpButtonBounds() protected méthode

Returns a Rectangle that specifies the size and location of the up button
protected GetUpButtonBounds ( ) : Rectangle
Résultat System.Drawing.Rectangle

NumberCellRenderer() public méthode

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

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

OnPaintBackground() protected méthode

Raises the PaintBackground event
protected OnPaintBackground ( 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