System.Web.UI.WebControls.TreeNodeStyleCollection.Insert Method

Inserts the specified System.Web.UI.WebControls.TreeNodeStyle object into the System.Web.UI.WebControls.TreeNodeStyleCollection object at the specified index location.

Syntax

public void Insert (int index, TreeNodeStyle style)

Parameters

index
The zero-based index location at which to insert the System.Web.UI.WebControls.TreeNodeStyle.
style
The System.Web.UI.WebControls.TreeNodeStyle to insert.

Remarks

Use the TreeNodeStyleCollection.Insert(int, TreeNodeStyle) method to insert the specified System.Web.UI.WebControls.TreeNodeStyle object into the System.Web.UI.WebControls.TreeNodeStyleCollection object at the specified zero-based index.

As an alternative, you can append a System.Web.UI.WebControls.TreeNodeStyle object to the end of the System.Web.UI.WebControls.TreeNodeStyleCollection by using the TreeNodeStyleCollection.Add(TreeNodeStyle) method.

Requirements

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