System.Web.UI.WebControls.WizardStepCollection.Insert Method

Inserts the specified System.Web.UI.WebControls.WizardStepBase-derived object into the collection at the specified index location.

Syntax

public void Insert (int index, WizardStepBase wizardStep)

Parameters

index
The index location at which to insert the System.Web.UI.WebControls.WizardStepBase-derived object.
wizardStep
The System.Web.UI.WebControls.WizardStepBase-derived object to insert into the System.Web.UI.WebControls.WizardStepCollection collection.

Remarks

The WizardStepCollection.Insert(int, WizardStepBase) method adds the System.Web.UI.WebControls.WizardStepBase-derived object to the collection at the specified index location.

Alternatively, you can use the WizardStepCollection.AddAt(int, WizardStepBase) method to add the System.Web.UI.WebControls.WizardStepBase-derived object to the collection. To add a System.Web.UI.WebControls.WizardStepBase-derived object to the end of the System.Web.UI.WebControls.WizardStepCollection collection, use the WizardStepCollection.Add(WizardStepBase) method.

Note:

The WizardStepCollection.Insert(int, WizardStepBase) method and the WizardStepCollection.AddAt(int, WizardStepBase) method perform essentially the same function. When the WizardStepCollection.Insert(int, WizardStepBase) method is called, it simply passes the wizardStep and index parameters to the WizardStepCollection.AddAt(int, WizardStepBase) method.

Requirements

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