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

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

Public Methods

Method Description
DateTimeCellRenderer ( ) : System

Initializes a new instance of the DateTimeCellRenderer class with default settings

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the PaintCell event

Protected Methods

Method Description
DrawText ( System.DateTime dateTime, Graphics g, Brush brush, Rectangle textRect ) : void

Draws the DateTime text

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

Method Details

DateTimeCellRenderer() public method

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

DrawText() protected method

Draws the DateTime text
protected DrawText ( System.DateTime dateTime, Graphics g, Brush brush, Rectangle textRect ) : void
dateTime System.DateTime The DateTime value to be drawn
g System.Drawing.Graphics The Graphics to draw on
brush System.Drawing.Brush The Brush to draw the text with
textRect System.Drawing.Rectangle A Rectangle that specifies the bounds of the text
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