C# Class ZForge.Controls.XPTable.Models.Row

Inheritance: IDisposable
显示文件 Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Property Type Description
ClearSelection void
GetRenderedCellIndex int
GetState bool
Init void
OnCellPropertyChanged void
SetState void
ShouldSerializeBackColor bool
ShouldSerializeEditable bool
ShouldSerializeEnabled bool
ShouldSerializeFont bool
ShouldSerializeForeColor bool
UpdateCellIndicies void

Public Methods

Method Description
Dispose ( ) : void

Releases all resources used by the Row

IsCellSelected ( int index ) : bool

Returns whether the Cell at the specified index is selected

Row ( ) : System

Initializes a new instance of the Row class with default settings

Row ( Cell cells ) : System

Initializes a new instance of the Row class with an array of Cell objects

Row ( Cell cells, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Row class with an array of Cell objects and the foreground color, background color, and font of the Row

Row ( Row parent ) : System

Initializes a new instance of the Row class with default settings and a parent row. The new row is a sub row

Row ( string items ) : System

Initializes a new instance of the Row class with an array of strings representing Cells

Row ( string items, Color foreColor, Color backColor, Font font ) : System

Initializes a new instance of the Row class with an array of strings representing Cells and the foreground color, background color, and font of the Row

Protected Methods

Method Description
OnCellAdded ( RowEventArgs e ) : void

Raises the CellAdded event

OnCellRemoved ( RowEventArgs e ) : void

Raises the CellRemoved event

OnPropertyChanged ( RowEventArgs e ) : void

Raises the PropertyChanged event

OnSubRowAdded ( RowEventArgs e ) : void

Raises the SubRowAdded event

OnSubRowRemoved ( RowEventArgs e ) : void

Raises the SubRowRemoved event

Private Methods

Method Description
ClearSelection ( ) : void

Removes the selected state from all the Cells within the Row

GetRenderedCellIndex ( int columnIndex ) : int

Returns the column that contains the cell that renders over the given column. This is only different if there is a colspan cell on this row, to the left of the given position.

GetState ( int flag ) : bool

Returns the state represented by the specified state flag

Init ( ) : void

Initialise default values

OnCellPropertyChanged ( CellEventArgs e ) : void

Raises the CellPropertyChanged event

SetState ( int flag, bool value ) : void

Sets the state represented by the specified state flag to the specified value

ShouldSerializeBackColor ( ) : bool

Specifies whether the BackColor property should be serialized at design time

ShouldSerializeEditable ( ) : bool

Specifies whether the Editable property should be serialized at design time

ShouldSerializeEnabled ( ) : bool

Specifies whether the Enabled property should be serialized at design time

ShouldSerializeFont ( ) : bool

Specifies whether the Font property should be serialized at design time

ShouldSerializeForeColor ( ) : bool

Specifies whether the ForeColor property should be serialized at design time

UpdateCellIndicies ( int start ) : void

Updates the Cell's Index property so that it matches the Cells position in the CellCollection

Method Details

Dispose() public method

Releases all resources used by the Row
public Dispose ( ) : void
return void

IsCellSelected() public method

Returns whether the Cell at the specified index is selected
public IsCellSelected ( int index ) : bool
index int The index of the Cell in the Row's Row.CellCollection
return bool

OnCellAdded() protected method

Raises the CellAdded event
protected OnCellAdded ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs A RowEventArgs that contains the event data
return void

OnCellRemoved() protected method

Raises the CellRemoved event
protected OnCellRemoved ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs A RowEventArgs that contains the event data
return void

OnPropertyChanged() protected method

Raises the PropertyChanged event
protected OnPropertyChanged ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs A RowEventArgs that contains the event data
return void

OnSubRowAdded() protected method

Raises the SubRowAdded event
protected OnSubRowAdded ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs
return void

OnSubRowRemoved() protected method

Raises the SubRowRemoved event
protected OnSubRowRemoved ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs
return void

Row() public method

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

Row() public method

Initializes a new instance of the Row class with an array of Cell objects
public Row ( Cell cells ) : System
cells Cell An array of Cell objects that represent the Cells of the Row
return System

Row() public method

Initializes a new instance of the Row class with an array of Cell objects and the foreground color, background color, and font of the Row
public Row ( Cell cells, Color foreColor, Color backColor, Font font ) : System
cells Cell An array of Cell objects that represent the Cells of the Row
foreColor Color The foreground Color of the Row
backColor Color The background Color of the Row
font Font The Font used to draw the text in the Row's Cells
return System

Row() public method

Initializes a new instance of the Row class with default settings and a parent row. The new row is a sub row
public Row ( Row parent ) : System
parent Row
return System

Row() public method

Initializes a new instance of the Row class with an array of strings representing Cells
public Row ( string items ) : System
items string An array of strings that represent the Cells of /// the Row
return System

Row() public method

Initializes a new instance of the Row class with an array of strings representing Cells and the foreground color, background color, and font of the Row
public Row ( string items, Color foreColor, Color backColor, Font font ) : System
items string An array of strings that represent the Cells of the Row
foreColor Color The foreground Color of the Row
backColor Color The background Color of the Row
font Font The Font used to draw the text in the Row's Cells
return System