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

A CellRenderer that draws Cell contents as a collapse/expand icon.
Inheritance: CellRenderer
Exibir arquivo Open project: zhuangyy/Motion

Private Properties

Property Type Description
DrawBox void
DrawCross void
DrawEndLine2 void
DrawHalfLine1 void
DrawHalfLine2 void
DrawLine1 void
DrawLine2 void
DrawMinus void
IsLastRow bool
IsSubRow bool
ToggleState void

Public Methods

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

Protected Methods

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

Private Methods

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

Method Details

CalcCheckRect() protected method

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
return System.Drawing.Rectangle

GetGroupRendererData() protected method

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

GroupCellRenderer() public method

Initializes a new instance of the GroupCellRenderer class with default settings
public GroupCellRenderer ( ) : System
return System

OnClick() public method

Fires the Click event.
public OnClick ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs
return void

OnDoubleClick() public method

Fires the DoubleClick event.
public OnDoubleClick ( CellMouseEventArgs e ) : void
e ZForge.Controls.XPTable.Events.CellMouseEventArgs
return void

OnPaint() protected method

Raises the Paint event
protected OnPaint ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs
return void

OnPaintCell() public method

Raises the OnPaintCell event
public OnPaintCell ( PaintCellEventArgs e ) : void
e ZForge.Controls.XPTable.Events.PaintCellEventArgs
return void