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

Base class for Renderers that draw Column headers
Inheritance: Renderer, IHeaderRenderer
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
OnClick ( HeaderMouseEventArgs e ) : void

Raises the Click event

OnDoubleClick ( HeaderMouseEventArgs e ) : void

Raises the DoubleClick event

OnMouseDown ( HeaderMouseEventArgs e ) : void

Raises the MouseDown event

OnMouseEnter ( HeaderMouseEventArgs e ) : void

Raises the MouseEnter event

OnMouseLeave ( HeaderMouseEventArgs e ) : void

Raises the MouseLeave event

OnMouseMove ( HeaderMouseEventArgs e ) : void

Raises the MouseMove event

OnMouseUp ( HeaderMouseEventArgs e ) : void

Raises the MouseUp event

OnPaintHeader ( PaintHeaderEventArgs e ) : void

Raises the PaintHeader event

Méthodes protégées

Méthode Description
CalcImageRect ( ) : Rectangle

Returns a Rectangle that represents the size and location of the Image displayed on the ColumnHeader

CalcSortArrowRect ( ) : Rectangle

Returns a Rectangle that represents the size and location of the sort arrow

DrawColumnHeaderImage ( Graphics g, Image image, Rectangle imageRect, bool enabled ) : void

Draws the Image contained in the ColumnHeader

DrawSortArrow ( Graphics g, Rectangle drawRect, SortOrder direction, bool enabled ) : void

Draws the ColumnHeader's sort arrow

HeaderRenderer ( ) : System

Initializes a new instance of the HeaderRenderer class with default settings

OnPaint ( PaintHeaderEventArgs e ) : void

Raises the Paint event

OnPaintBackground ( PaintHeaderEventArgs e ) : void

Raises the PaintBackground event

Method Details

CalcImageRect() protected méthode

Returns a Rectangle that represents the size and location of the Image displayed on the ColumnHeader
protected CalcImageRect ( ) : Rectangle
Résultat System.Drawing.Rectangle

CalcSortArrowRect() protected méthode

Returns a Rectangle that represents the size and location of the sort arrow
protected CalcSortArrowRect ( ) : Rectangle
Résultat System.Drawing.Rectangle

DrawColumnHeaderImage() protected méthode

Draws the Image contained in the ColumnHeader
protected DrawColumnHeaderImage ( Graphics g, Image image, Rectangle imageRect, bool enabled ) : void
g System.Drawing.Graphics The Graphics used to paint the Image
image Image The Image to be drawn
imageRect System.Drawing.Rectangle A rectangle that specifies the Size and /// Location of the Image
enabled bool Specifies whether the Image should be drawn /// in an enabled state
Résultat void

DrawSortArrow() protected méthode

Draws the ColumnHeader's sort arrow
protected DrawSortArrow ( Graphics g, Rectangle drawRect, SortOrder direction, bool enabled ) : void
g System.Drawing.Graphics The Graphics to draw on
drawRect System.Drawing.Rectangle A Rectangle that specifies the location /// of the sort arrow
direction SortOrder The direction of the sort arrow
enabled bool Specifies whether the sort arrow should be /// drawn in an enabled state
Résultat void

HeaderRenderer() protected méthode

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

OnClick() public méthode

Raises the Click event
public OnClick ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Résultat void

OnDoubleClick() public méthode

Raises the DoubleClick event
public OnDoubleClick ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Résultat void

OnMouseDown() public méthode

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

OnMouseEnter() public méthode

Raises the MouseEnter event
public OnMouseEnter ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Résultat void

OnMouseLeave() public méthode

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

OnMouseMove() public méthode

Raises the MouseMove event
public OnMouseMove ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Résultat void

OnMouseUp() public méthode

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

OnPaint() protected méthode

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

OnPaintBackground() protected méthode

Raises the PaintBackground event
protected OnPaintBackground ( PaintHeaderEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintHeaderEventArgs A PaintHeaderEventArgs that contains the event data
Résultat void

OnPaintHeader() public méthode

Raises the PaintHeader event
public OnPaintHeader ( PaintHeaderEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintHeaderEventArgs A PaintHeaderEventArgs that contains the event data
Résultat void