C# 클래스 XPTable.Models.CellCollection

Represents a collection of Cell objects
상속: System.Collections.CollectionBase
파일 보기 프로젝트 열기: binaryage/xrefresh 1 사용 예제들

공개 메소드들

메소드 설명
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