C# Class ZForge.Controls.XPTable.Models.ColumnCollection

Represents a collection of Column objects
Inheritance: System.Collections.CollectionBase
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
OnColumnAdded ( ColumnModelEventArgs e ) : void

Raises the ColumnAdded event

OnColumnRemoved ( ColumnModelEventArgs e ) : void

Raises the ColumnRemoved event

RecalcWidthCache ( ) : void

Recalculates the total combined width of all columns

Method Details

Add() public méthode

Adds the specified Column to the end of the collection
public Add ( Column column ) : int
column Column The Column to add
Résultat int

AddRange() public méthode

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
Résultat void

Clear() public méthode

Removes all Columns from the collection
public Clear ( ) : void
Résultat void

ColumnCollection() public méthode

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
Résultat System

IndexOf() public méthode

Returns the index of the specified Column in the model
public IndexOf ( Column column ) : int
column Column The Column to look for
Résultat int

OnColumnAdded() protected méthode

Raises the ColumnAdded event
protected OnColumnAdded ( ColumnModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.ColumnModelEventArgs A ColumnModelEventArgs that contains the event data
Résultat void

OnColumnRemoved() protected méthode

Raises the ColumnRemoved event
protected OnColumnRemoved ( ColumnModelEventArgs e ) : void
e ZForge.Controls.XPTable.Events.ColumnModelEventArgs A ColumnModelEventArgs that contains the event data
Résultat void

RecalcWidthCache() protected méthode

Recalculates the total combined width of all columns
protected RecalcWidthCache ( ) : void
Résultat void

Remove() public méthode

Removes the specified Column from the model
public Remove ( Column column ) : void
column Column The Column to remove
Résultat void

RemoveAt() public méthode

Removes the Column at the specified index from the collection
public RemoveAt ( int index ) : void
index int The index of the Column to remove
Résultat void

RemoveRange() public méthode

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
Résultat void

this() public méthode

Gets the Column at the specified index
public this ( int index ) : Column
index int
Résultat Column