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

Represents a collection of Row objects
Inheritance: System.Collections.CollectionBase
Exibir arquivo Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
Add ( Row row ) : int

Adds the specified Row to the end of the collection

AddRange ( Row rows ) : void

Adds an array of Row objects to the collection

Clear ( ) : void

Removes all Rows from the collection

IndexOf ( Row row ) : int

Returns the index of the specified Row in the model

Insert ( int index, Row row ) : void

Inserts a Row into the collection at the specified index

InsertRange ( int index, Row rows ) : void

Inserts an array of Rows into the collection at the specified index

Remove ( Row row ) : void

Removes the specified Row from the model

RemoveAt ( int index ) : void

Removes the Row at the specified index from the collection

RemoveRange ( Row rows ) : void

Removes an array of Row objects from the collection

RowCollection ( Row owner ) : System

Initializes a new instance of the RowCollection class that belongs to the specified Row

RowCollection ( TableModel owner ) : System

Initializes a new instance of the RowCollection class that belongs to the specified TableModel

this ( int index ) : Row

Gets the Row at the specified index

Protected Methods

Method Description
OnRowAdded ( RowEventArgs e ) : void

Raises the RowAdded event

OnRowAdded ( TableModelEventArgs e ) : void

Raises the RowAdded event

OnRowRemoved ( RowEventArgs e ) : void

Raises the RowRemoved event

OnRowRemoved ( TableModelEventArgs e ) : void

Raises the RowRemoved event

Private Methods

Method Description
SetRow ( int index, Row row ) : void

Replaces the Row at the specified index to the specified Row

Method Details

Add() public method

Adds the specified Row to the end of the collection
public Add ( Row row ) : int
row Row The Row to add
return int

AddRange() public method

Adds an array of Row objects to the collection
public AddRange ( Row rows ) : void
rows Row An array of Row objects to add /// to the collection
return void

Clear() public method

Removes all Rows from the collection
public Clear ( ) : void
return void

IndexOf() public method

Returns the index of the specified Row in the model
public IndexOf ( Row row ) : int
row Row The Row to look for
return int

Insert() public method

Inserts a Row into the collection at the specified index
public Insert ( int index, Row row ) : void
index int The zero-based index at which the Row /// should be inserted
row Row The Row to insert
return void

InsertRange() public method

Inserts an array of Rows into the collection at the specified index
public InsertRange ( int index, Row rows ) : void
index int The zero-based index at which the rows /// should be inserted
rows Row The array of Rows to be inserted into /// the collection
return void

OnRowAdded() protected method

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

OnRowAdded() protected method

Raises the RowAdded event
protected OnRowAdded ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
return void

OnRowRemoved() protected method

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

OnRowRemoved() protected method

Raises the RowRemoved event
protected OnRowRemoved ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
return void

Remove() public method

Removes the specified Row from the model
public Remove ( Row row ) : void
row Row The Row to remove
return void

RemoveAt() public method

Removes the Row at the specified index from the collection
public RemoveAt ( int index ) : void
index int The index of the Row to remove
return void

RemoveRange() public method

Removes an array of Row objects from the collection
public RemoveRange ( Row rows ) : void
rows Row An array of Row objects to remove /// from the collection
return void

RowCollection() public method

Initializes a new instance of the RowCollection class that belongs to the specified Row
public RowCollection ( Row owner ) : System
owner Row
return System

RowCollection() public method

Initializes a new instance of the RowCollection class that belongs to the specified TableModel
public RowCollection ( TableModel owner ) : System
owner TableModel A TableModel representing the tableModel that owns /// the RowCollection
return System

this() public method

Gets the Row at the specified index
public this ( int index ) : Row
index int
return Row