New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

A class representing a collection of RadTreeListColumn objects.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class TreeListColumnsCollection : IList, ICollection, IList<TreeListColumn>, ICollection<TreeListColumn>, IEnumerable<TreeListColumn>, IEnumerable, IStateManager

Inheritance: objectTreeListColumnsCollection

Implements: ICollectionICollection<TreeListColumn>IEnumerableIEnumerable<TreeListColumn>IListIList<TreeListColumn>IStateManager...

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public TreeListColumnsCollection(RadTreeList owner)
Parameters:ownerRadTreeList

Properties

Gets the count of columns in the collection.

C#
public int Count { get; }

Implements: ICollection<TreeListColumn>.Count

Gets a value indicating whether the collection is read only.

C#
public bool IsReadOnly { get; }

Implements: ICollection<TreeListColumn>.IsReadOnly

Gets a reference to the owner RadTreeList object.

C#
public RadTreeList Owner { get; }
C#
public TreeListColumn this[int index] { get; }
Parameters:indexint

Methods

Adds the passed column to the column collection.

C#
public void Add(TreeListColumn item)
Parameters:itemTreeListColumn

A TreeListColumn object that should be added to the collection.

Implements: ICollection<TreeListColumn>.Add(TreeListColumn)

Clears all column from the collection.

C#
public void Clear()

Implements: ICollection<TreeListColumn>.Clear()

Checks whether a given column belongs to the collection.

C#
public bool Contains(TreeListColumn item)
Parameters:itemTreeListColumn

The TreeListColumn object to check for in the collection.

Returns:

bool

A boolean value indicating whether the column was found.

Implements: ICollection<TreeListColumn>.Contains(TreeListColumn)

Copies the column collection to a given array.

C#
public void CopyTo(TreeListColumn[] array, int arrayIndex)
Parameters:arrayTreeListColumn[]

A reference to TreeListColumn[] object where the columns need to be copied to.

arrayIndexint

An integer indicating from which index on the columns should be added to the new collection.

Implements: ICollection<TreeListColumn>.CopyTo(TreeListColumn[], int)

Returns an enumerator that iterates through the collection.

C#
public IEnumerator<TreeListColumn> GetEnumerator()
Returns:

IEnumerator<TreeListColumn>

An IEnumerator<TreeListColumn> used for iterating the collection.

Implements: IEnumerable<TreeListColumn>.GetEnumerator()

Gets the index of the passed column in the column collection.

C#
public int IndexOf(TreeListColumn item)
Parameters:itemTreeListColumn

The TreeListColumn object to find in the collection.

Returns:

int

An integer that indicates the index of the column in the collection.

Implements: IList<TreeListColumn>.IndexOf(TreeListColumn)

Inserts the provided column at the given index in the collection.

C#
public void Insert(int index, TreeListColumn item)
Parameters:indexint

An integer that indicates at which position the column should be inserted.

itemTreeListColumn

The TreeListColumn object that should be added.

Implements: IList<TreeListColumn>.Insert(int, TreeListColumn)

Removes the passed column from the collection.

C#
public bool Remove(TreeListColumn item)
Parameters:itemTreeListColumn

The TreeListColumn to remove from the collection.

Returns:

bool

A boolean value indicating whether the column was removed successfully

Implements: ICollection<TreeListColumn>.Remove(TreeListColumn)

Removes the column at the provided index.

C#
public void RemoveAt(int index)
Parameters:indexint

An integer specifying the position from which a column should be removed.

Implements: IList<TreeListColumn>.RemoveAt(int)