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

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

Private Properties

Свойство Тип Описание

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

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

Adds the specified Column to the end of the collection

AddRange ( Column columns ) : void

Adds an array of Column objects to the collection

Clear ( ) : void

Removes all Columns from the collection

ColumnCollection ( ColumnModel owner ) : System

Initializes a new instance of the ColumnModel.ColumnCollection class that belongs to the specified ColumnModel

IndexOf ( Column column ) : int

Returns the index of the specified Column in the model

Remove ( Column column ) : void

Removes the specified Column from the model

RemoveAt ( int index ) : void

Removes the Column at the specified index from the collection

RemoveRange ( Column columns ) : void

Removes an array of Column objects from the collection

this ( int index ) : Column

Gets the Column at the specified index

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

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

Raises the ColumnAdded event

OnColumnRemoved ( XPTable.Events.ColumnModelEventArgs e ) : void

Raises the ColumnRemoved event

RecalcWidthCache ( ) : void

Recalculates the total combined width of all columns

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

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

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

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

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

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

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

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

Initializes a new instance of the ColumnModel.ColumnCollection class that belongs to the specified ColumnModel
public ColumnCollection ( ColumnModel owner ) : System
owner ColumnModel A ColumnModel representing the columnModel that owns /// the Column collection
Результат System

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

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

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

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

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

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

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

Recalculates the total combined width of all columns
protected RecalcWidthCache ( ) : void
Результат void

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

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

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

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

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

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

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

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