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

Represents a base collection of controls that supports state management.

Definition

Constructors

Initializes a new instance of the ControlCollectionBase class.

C#
public ControlCollectionBase()

Initializes a new instance of the ControlCollectionBase class with the specified parent control.

C#
public ControlCollectionBase(Control parent)
Parameters:parentControl

The parent control that owns this collection.

Properties

Gets the list representation of the collection.

C#
public IList List { get; }

Gets the parent control that owns this collection.

C#
public Control Parent { get; }

Methods

Executes the specified action for each control in the collection.

C#
public virtual void ForEach(Action<Control> action)
Parameters:actionAction<Control>

The action to execute for each control.

Called after an item is inserted into the collection. Adds the item to the parent control's child controls.

C#
protected override void OnInsertComplete(int index, object value)
Parameters:indexint

The index at which the item was inserted.

valueobject

The item that was inserted.

Overrides: StateManagedCollection.OnInsertComplete(int, object)

Marks the specified object as dirty, indicating that its state has changed.

C#
protected override void SetDirtyObject(object o)
Parameters:oobject

The object to mark as dirty.

Overrides: StateManagedCollection.SetDirtyObject(object)