C# Класс XPTable.Models.CellCollection

Represents a collection of Cell objects
Наследование: System.Collections.CollectionBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
OnCellAdded ( XPTable.Events.RowEventArgs e ) : void

Raises the CellAdded event

OnCellRemoved ( XPTable.Events.RowEventArgs e ) : void

Raises the CellRemoved event

Описание методов

Add() публичный Метод

Adds the specified Cell to the end of the collection
public Add ( Cell cell ) : int
cell Cell The Cell to add
Результат int

AddRange() публичный Метод

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
Результат void

CellCollection() публичный Метод

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
Результат System

Clear() публичный Метод

Removes all Cells from the collection
public Clear ( ) : void
Результат void

IndexOf() публичный Метод

Returns the index of the specified Cell in the model
public IndexOf ( Cell cell ) : int
cell Cell The Cell to look for
Результат int

Insert() публичный Метод

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
Результат void

InsertRange() публичный Метод

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
Результат void

OnCellAdded() защищенный Метод

Raises the CellAdded event
protected OnCellAdded ( XPTable.Events.RowEventArgs e ) : void
e XPTable.Events.RowEventArgs A RowEventArgs that contains the event data
Результат void

OnCellRemoved() защищенный Метод

Raises the CellRemoved event
protected OnCellRemoved ( XPTable.Events.RowEventArgs e ) : void
e XPTable.Events.RowEventArgs A RowEventArgs that contains the event data
Результат void

Remove() публичный Метод

Removes the specified Cell from the model
public Remove ( Cell cell ) : void
cell Cell The Cell to remove
Результат void

RemoveAt() публичный Метод

Removes the Cell at the specified index from the collection
public RemoveAt ( int index ) : void
index int The index of the Cell to remove
Результат void

RemoveRange() публичный Метод

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
Результат void

this() публичный Метод

Gets the Cell at the specified index
public this ( int index ) : Cell
index int
Результат Cell