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

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

Private Properties

Property Type Description

Public Methods

Method 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

Protected Methods

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

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

CalcSortArrowRect() protected method

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

DrawColumnHeaderImage() protected method

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

DrawSortArrow() protected method

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

HeaderRenderer() protected method

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

OnClick() public method

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

OnDoubleClick() public method

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

OnMouseDown() public method

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

OnMouseEnter() public method

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

OnMouseLeave() public method

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

OnMouseMove() public method

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

OnMouseUp() public method

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

OnPaint() protected method

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

OnPaintBackground() protected method

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

OnPaintHeader() public method

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