System.Web.UI.WebControls.ViewCollection.AddAt Method

Adds the specified System.Web.UI.WebControls.View control to the collection at the specified index location.

Syntax

public override void AddAt (int index, System.Web.UI.Control v)

Parameters

index
The array index at which to add the System.Web.UI.WebControls.View control.
v
The System.Web.UI.WebControls.View control to add to the collection.

Remarks

The ViewCollection.AddAt(int, System.Web.UI.Control) method adds the new control to the collection at the specified index location. The control can only be an instance of a System.Web.UI.WebControls.View control.

To add a control at the end of an ordinal index array, use the ViewCollection.Add(System.Web.UI.Control) method.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0