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

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

Private Properties

Property Type Description

Public Methods

Method 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

Protected Methods

Method 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 method

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

AddRange() public method

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
return void

Clear() public method

Removes all Columns from the collection
public Clear ( ) : void
return void

ColumnCollection() public method

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
return System

IndexOf() public method

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

OnColumnAdded() protected method

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

OnColumnRemoved() protected method

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

RecalcWidthCache() protected method

Recalculates the total combined width of all columns
protected RecalcWidthCache ( ) : void
return void

Remove() public method

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

RemoveAt() public method

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

RemoveRange() public method

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
return void

this() public method

Gets the Column at the specified index
public this ( int index ) : Column
index int
return Column