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

A CellRenderer that draws Cell contents as a collapse/expand icon.
Наследование: CellRenderer
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
DrawBox void
DrawCross void
DrawEndLine2 void
DrawHalfLine1 void
DrawHalfLine2 void
DrawLine1 void
DrawLine2 void
DrawMinus void
IsLastRow bool
IsSubRow bool
ToggleState void

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

Метод Описание
GroupCellRenderer ( ) : System

Initializes a new instance of the GroupCellRenderer class with default settings

OnClick ( CellMouseEventArgs e ) : void

Fires the Click event.

OnDoubleClick ( CellMouseEventArgs e ) : void

Fires the DoubleClick event.

OnPaintCell ( PaintCellEventArgs e ) : void

Raises the OnPaintCell event

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

Метод Описание
CalcCheckRect ( RowAlignment rowAlignment, ColumnAlignment columnAlignment ) : Rectangle

Gets the Rectangle that specifies the Size and Location of the check box contained in the current Cell

GetGroupRendererData ( Cell cell ) : GroupRendererData

Gets the GroupRendererData specific data used by the Renderer from the specified Cell

OnPaint ( PaintCellEventArgs e ) : void

Raises the Paint event

Приватные методы

Метод Описание
DrawBox ( Graphics g, Pen p, Rectangle rect ) : void
DrawCross ( Graphics g, Pen p, Rectangle rect ) : void
DrawEndLine2 ( Graphics g, Pen p, Rectangle rect ) : void
DrawHalfLine1 ( Graphics g, Pen p, Rectangle rect ) : void

Draws a line on the RHS and joins it up to the RHS of the box

DrawHalfLine2 ( Graphics g, Pen p, Rectangle rect ) : void

Draw a line down the middle, up to the bottom of the box.

DrawLine1 ( Graphics g, Pen p, Rectangle rect ) : void

Draws a line on the RHS

DrawLine2 ( Graphics g, Pen p, Rectangle rect ) : void

Draws a line down the middle

DrawMinus ( Graphics g, Pen p, Rectangle rect ) : void
IsLastRow ( Cell cell ) : bool

Returns true if this cell is in the last subrow.

IsSubRow ( Cell cell ) : bool

Returns true if this cell is in a sub row.

ToggleState ( CellMouseEventArgs e ) : void

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

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

Gets the Rectangle that specifies the Size and Location of the check box contained in the current Cell
protected CalcCheckRect ( RowAlignment rowAlignment, ColumnAlignment columnAlignment ) : Rectangle
rowAlignment RowAlignment
columnAlignment ColumnAlignment
Результат System.Drawing.Rectangle

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

Gets the GroupRendererData specific data used by the Renderer from the specified Cell
protected GetGroupRendererData ( Cell cell ) : GroupRendererData
cell ZForge.Controls.XPTable.Models.Cell The Cell to get the GroupRendererData data for
Результат GroupRendererData

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

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

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

Fires the Click event.
public OnClick ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs
Результат void

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

Fires the DoubleClick event.
public OnDoubleClick ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs
Результат void

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

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

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

Raises the OnPaintCell event
public OnPaintCell ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs
Результат void