Inserts the specified System.Web.UI.WebControls.WizardStepBase-derived object into the collection at the specified index location.
- 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.
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.
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.