Skip to main content

TreeListColumnCollection Members

Represents a column collection in the Tree List control.

Constructors

Name Description
TreeListColumnCollection(TreeList) Creates a new TreeListColumnCollection object.

Properties

Name Description
Count Gets the number of elements actually contained in the collection.
Item[Int32] Provides indexed access to individual columns.
Item[String] Gets the column bound to the specified field.
TreeList Gets the control that owns the collection.

Methods

Name Description
Add() Creates a new column and appends it to the end of the collection.
Add(TreeListColumn) Adds the specified column to the end of the collection.
AddField(String) Creates a new column which is bound to the specified field and appends it to the collection.
AddRange(TreeListColumn[]) Adds an array of columns to the end of the collection.
AddVisible(String) Adds a new column, binding it to the specified field and making this column visible.
AssignTo(TreeListColumnCollection) Copies the current collection’s elements to the collection specified.
Clear() Removes all elements from the collection.
ColumnByFieldName(String) Returns a column with the field name specified.
ColumnByName(String) Returns a column specified by its name.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
ForEach(Action<TreeListColumn>) Executes the specified action on each element of the collection.
GetEnumerator() Returns an enumerator that iterates through the collection.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IndexOf(TreeListColumn) Returns the specified column’s position within the collection.
Insert(Int32) Creates a new column and adds it to the collection at the specified position.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Remove(TreeListColumn) Removes a column from the collection.
RemoveAt(Int32) Removes the element at the specified index of the collection.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
CollectionChanged Fires when changes are made to the column collection.
See Also