C# Class SourceGrid.CellCollection

A collection of elements of type Cells.ICellVirtual
Inheritance: System.Collections.CollectionBase
Show file Open project: zhuangyy/Motion Class Usage Examples

Public Methods

Method Description
Add ( Cells value ) : void

Adds an instance of type Cells.ICellVirtual to the end of this CellBaseCollection.

AddRange ( CellCollection items ) : void

Adds the elements of another CellBaseCollection to the end of this CellBaseCollection.

AddRange ( Cells items ) : void

Adds the elements of an array to the end of this CellBaseCollection.

CellCollection ( ) : System

Initializes a new empty instance of the CellBaseCollection class.

CellCollection ( CellCollection items ) : System

Initializes a new instance of the CellBaseCollection class, containing elements copied from another instance of CellBaseCollection

CellCollection ( Cells items ) : System

Initializes a new instance of the CellBaseCollection class, containing elements copied from an array.

Contains ( Cells value ) : bool

Determines whether a specfic Cells.ICellVirtual value is in this CellBaseCollection.

GetEnumerator ( ) : CellCollection.Enumerator

Returns an enumerator that can iterate through the elements of this CellBaseCollection.

IndexOf ( Cells value ) : int

Return the zero-based index of the first occurrence of a specific value in this CellBaseCollection

Insert ( int index, Cells value ) : void

Inserts an element into the CellBaseCollection at the specified index

Remove ( Cells value ) : void

Removes the first occurrence of a specific Cells.ICellVirtual from this CellBaseCollection.

this ( int index ) : Cells.ICellVirtual

Gets or sets the Cells.ICellVirtual at the given index in this CellBaseCollection.

Method Details

Add() public method

Adds an instance of type Cells.ICellVirtual to the end of this CellBaseCollection.
public Add ( Cells value ) : void
value Cells /// The Cells.ICellVirtual to be added to the end of this CellBaseCollection. ///
return void

AddRange() public method

Adds the elements of another CellBaseCollection to the end of this CellBaseCollection.
public AddRange ( CellCollection items ) : void
items CellCollection /// The CellBaseCollection whose elements are to be added to the end of this CellBaseCollection. ///
return void

AddRange() public method

Adds the elements of an array to the end of this CellBaseCollection.
public AddRange ( Cells items ) : void
items Cells /// The array whose elements are to be added to the end of this CellBaseCollection. ///
return void

CellCollection() public method

Initializes a new empty instance of the CellBaseCollection class.
public CellCollection ( ) : System
return System

CellCollection() public method

Initializes a new instance of the CellBaseCollection class, containing elements copied from another instance of CellBaseCollection
public CellCollection ( CellCollection items ) : System
items CellCollection /// The CellBaseCollection whose elements are to be added to the new CellBaseCollection. ///
return System

CellCollection() public method

Initializes a new instance of the CellBaseCollection class, containing elements copied from an array.
public CellCollection ( Cells items ) : System
items Cells /// The array whose elements are to be added to the new CellBaseCollection. ///
return System

Contains() public method

Determines whether a specfic Cells.ICellVirtual value is in this CellBaseCollection.
public Contains ( Cells value ) : bool
value Cells /// The Cells.ICellVirtual value to locate in this CellBaseCollection. ///
return bool

GetEnumerator() public method

Returns an enumerator that can iterate through the elements of this CellBaseCollection.
public GetEnumerator ( ) : CellCollection.Enumerator
return CellCollection.Enumerator

IndexOf() public method

Return the zero-based index of the first occurrence of a specific value in this CellBaseCollection
public IndexOf ( Cells value ) : int
value Cells /// The Cells.ICellVirtual value to locate in the CellBaseCollection. ///
return int

Insert() public method

Inserts an element into the CellBaseCollection at the specified index
public Insert ( int index, Cells value ) : void
index int /// The index at which the Cells.ICellVirtual is to be inserted. ///
value Cells /// The Cells.ICellVirtual to insert. ///
return void

Remove() public method

Removes the first occurrence of a specific Cells.ICellVirtual from this CellBaseCollection.
public Remove ( Cells value ) : void
value Cells /// The Cells.ICellVirtual value to remove from this CellBaseCollection. ///
return void

this() public method

Gets or sets the Cells.ICellVirtual at the given index in this CellBaseCollection.
public this ( int index ) : Cells.ICellVirtual
index int
return Cells.ICellVirtual