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

This class represents a generic state menaged collection of web controls.

Definition

Constructors

C#
protected GenericStateManagedCollection()

Properties

Gets the IsReadOnly.

C#
public bool IsReadOnly { get; }
Property Value:

The IsReadOnly.

C#
protected IList List { get; }

Gets the CollectionItem at the specified index in the current collection.

C#
public virtual TItem this[int index] { get; set; }
Parameters:indexint

Methods

Adds a CollectionItem to the collection.

C#
public void Add(TItem item)
Parameters:itemTItem
C#
public bool Contains(TItem item)
Parameters:itemTItemReturns:

bool

Copies the items of ICollection to Array.

C#
public void CopyTo(TItem[] array, int arrayIndex)
Parameters:arrayTItem[]

The array.

arrayIndexint

Index of the array.

Gets the index of a CollectionItem.

C#
public int IndexOf(TItem item)
Parameters:itemTItemReturns:

int

Inserts a CollectionItem.

C#
public void Insert(int index, TItem item)
Parameters:indexintitemTItem

Removes the specified item.

C#
public bool Remove(TItem item)
Parameters:itemTItem

The CollectionItem item.

Returns:

bool

Removes a CollectionItem by index.

C#
public void RemoveAt(int index)
Parameters:indexint
C#
protected override void SetDirtyObject(object o)
Parameters:oobject

Overrides: StateManagedCollection.SetDirtyObject(object)