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

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

Public Methods

Method Description
Add ( Cell cell ) : int

Adds the specified Cell to the end of the collection

AddRange ( Cell cells ) : void

Adds an array of Cell objects to the collection

CellCollection ( Row owner ) : System

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

Clear ( ) : void

Removes all Cells from the collection

IndexOf ( Cell cell ) : int

Returns the index of the specified Cell in the model

Insert ( int index, Cell cell ) : void

Inserts a Cell into the collection at the specified index

InsertRange ( int index, Cell cells ) : void

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

Remove ( Cell cell ) : void

Removes the specified Cell from the model

RemoveAt ( int index ) : void

Removes the Cell at the specified index from the collection

RemoveRange ( Cell cells ) : void

Removes an array of Cell objects from the collection

this ( int index ) : Cell

Gets the Cell at the specified index

Protected Methods

Method Description
OnCellAdded ( RowEventArgs e ) : void

Raises the CellAdded event

OnCellRemoved ( RowEventArgs e ) : void

Raises the CellRemoved event

Method Details

Add() public method

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

AddRange() public method

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

CellCollection() public method

Initializes a new instance of the CellCollection class that belongs to the specified Row
public CellCollection ( Row owner ) : System
owner Row A Row representing the row that owns /// the Cell collection
return System

Clear() public method

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

IndexOf() public method

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

Insert() public method

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

InsertRange() public method

Inserts an array of Cells into the collection at the specified index
public InsertRange ( int index, Cell cells ) : void
index int The zero-based index at which the cells should be inserted
cells Cell An array of Cells to be inserted into the collection
return void

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

Remove() public method

Removes the specified Cell from the model
public Remove ( Cell cell ) : void
cell Cell The Cell to remove
return void

RemoveAt() public method

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

RemoveRange() public method

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

this() public method

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