C# Класс ZForge.Controls.XPTable.Models.RowCollection

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

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

Метод Описание
Add ( Row row ) : int

Adds the specified Row to the end of the collection

AddRange ( Row rows ) : void

Adds an array of Row objects to the collection

Clear ( ) : void

Removes all Rows from the collection

IndexOf ( Row row ) : int

Returns the index of the specified Row in the model

Insert ( int index, Row row ) : void

Inserts a Row into the collection at the specified index

InsertRange ( int index, Row rows ) : void

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

Remove ( Row row ) : void

Removes the specified Row from the model

RemoveAt ( int index ) : void

Removes the Row at the specified index from the collection

RemoveRange ( Row rows ) : void

Removes an array of Row objects from the collection

RowCollection ( Row owner ) : System

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

RowCollection ( TableModel owner ) : System

Initializes a new instance of the RowCollection class that belongs to the specified TableModel

this ( int index ) : Row

Gets the Row at the specified index

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

Метод Описание
OnRowAdded ( RowEventArgs e ) : void

Raises the RowAdded event

OnRowAdded ( TableModelEventArgs e ) : void

Raises the RowAdded event

OnRowRemoved ( RowEventArgs e ) : void

Raises the RowRemoved event

OnRowRemoved ( TableModelEventArgs e ) : void

Raises the RowRemoved event

Приватные методы

Метод Описание
SetRow ( int index, Row row ) : void

Replaces the Row at the specified index to the specified Row

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

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

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

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

Adds an array of Row objects to the collection
public AddRange ( Row rows ) : void
rows Row An array of Row objects to add /// to the collection
Результат void

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

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

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

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

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

Inserts a Row into the collection at the specified index
public Insert ( int index, Row row ) : void
index int The zero-based index at which the Row /// should be inserted
row Row The Row to insert
Результат void

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

Inserts an array of Rows into the collection at the specified index
public InsertRange ( int index, Row rows ) : void
index int The zero-based index at which the rows /// should be inserted
rows Row The array of Rows to be inserted into /// the collection
Результат void

OnRowAdded() защищенный метод

Raises the RowAdded event
protected OnRowAdded ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs A TableModelEventArgs that contains the event data
Результат void

OnRowAdded() защищенный метод

Raises the RowAdded event
protected OnRowAdded ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
Результат void

OnRowRemoved() защищенный метод

Raises the RowRemoved event
protected OnRowRemoved ( RowEventArgs e ) : void
e ZForge.Controls.XPTable.Events.RowEventArgs A TableModelEventArgs that contains the event data
Результат void

OnRowRemoved() защищенный метод

Raises the RowRemoved event
protected OnRowRemoved ( TableModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.TableModelEventArgs A TableModelEventArgs that contains the event data
Результат void

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

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

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

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

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

Removes an array of Row objects from the collection
public RemoveRange ( Row rows ) : void
rows Row An array of Row objects to remove /// from the collection
Результат void

RowCollection() публичный метод

Initializes a new instance of the RowCollection class that belongs to the specified Row
public RowCollection ( Row owner ) : System
owner Row
Результат System

RowCollection() публичный метод

Initializes a new instance of the RowCollection class that belongs to the specified TableModel
public RowCollection ( TableModel owner ) : System
owner TableModel A TableModel representing the tableModel that owns /// the RowCollection
Результат System

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

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