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

A base class for drawing Cells contents as numbers
Inheritance: CellRenderer
Exibir arquivo Open project: zhuangyy/Motion

Public Methods

Method 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

Protected Methods

Method 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

Method 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 method

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

GetDownButtonBounds() protected method

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

GetNumberRendererData() protected method

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
return NumberRendererData

GetUpButtonBounds() protected method

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

NumberCellRenderer() public method

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

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

OnPaintBackground() protected method

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