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

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnCellAdded ( RowEventArgs e ) : void

Raises the CellAdded event

OnCellRemoved ( RowEventArgs e ) : void

Raises the CellRemoved event

Method Details

Add() public méthode

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

AddRange() public méthode

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
Résultat void

CellCollection() public méthode

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
Résultat System

Clear() public méthode

Removes all Cells from the collection
public Clear ( ) : void
Résultat void

IndexOf() public méthode

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

Insert() public méthode

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
Résultat void

InsertRange() public méthode

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
Résultat void

OnCellAdded() protected méthode

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

OnCellRemoved() protected méthode

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

Remove() public méthode

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

RemoveAt() public méthode

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

RemoveRange() public méthode

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
Résultat void

this() public méthode

Gets the Cell at the specified index
public this ( int index ) : Cell
index int
Résultat Cell