C# Класс ZForge.Controls.XPTable.Renderers.HeaderRenderer

Base class for Renderers that draw Column headers
Наследование: Renderer, IHeaderRenderer
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Описание методов

CalcImageRect() защищенный Метод

Returns a Rectangle that represents the size and location of the Image displayed on the ColumnHeader
protected CalcImageRect ( ) : Rectangle
Результат System.Drawing.Rectangle

CalcSortArrowRect() защищенный Метод

Returns a Rectangle that represents the size and location of the sort arrow
protected CalcSortArrowRect ( ) : Rectangle
Результат System.Drawing.Rectangle

DrawColumnHeaderImage() защищенный Метод

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
Результат void

DrawSortArrow() защищенный Метод

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
Результат void

HeaderRenderer() защищенный Метод

Initializes a new instance of the HeaderRenderer class with default settings
protected HeaderRenderer ( ) : System
Результат System

OnClick() публичный Метод

Raises the Click event
public OnClick ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Результат void

OnDoubleClick() публичный Метод

Raises the DoubleClick event
public OnDoubleClick ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Результат void

OnMouseDown() публичный Метод

Raises the MouseDown event
public OnMouseDown ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Результат void

OnMouseEnter() публичный Метод

Raises the MouseEnter event
public OnMouseEnter ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Результат void

OnMouseLeave() публичный Метод

Raises the MouseLeave event
public OnMouseLeave ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Результат void

OnMouseMove() публичный Метод

Raises the MouseMove event
public OnMouseMove ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Результат void

OnMouseUp() публичный Метод

Raises the MouseUp event
public OnMouseUp ( HeaderMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.HeaderMouseEventArgs A HeaderMouseEventArgs that contains the event data
Результат void

OnPaint() защищенный Метод

Raises the Paint event
protected OnPaint ( PaintHeaderEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintHeaderEventArgs A PaintHeaderEventArgs that contains the event data
Результат void

OnPaintBackground() защищенный Метод

Raises the PaintBackground event
protected OnPaintBackground ( PaintHeaderEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintHeaderEventArgs A PaintHeaderEventArgs that contains the event data
Результат void

OnPaintHeader() публичный Метод

Raises the PaintHeader event
public OnPaintHeader ( PaintHeaderEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintHeaderEventArgs A PaintHeaderEventArgs that contains the event data
Результат void