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

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

Méthodes publiques

Méthode Description
DateTimeCellRenderer ( ) : System

Initializes a new instance of the DateTimeCellRenderer class with default settings

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the PaintCell event

Méthodes protégées

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

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

DrawText() protected méthode

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