TreeNodeStyleCollection.Insert Method (Int32, TreeNodeStyle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Inserts the specified TreeNodeStyle object into the TreeNodeStyleCollection object at the specified index location.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public void Insert(
	int index,
	TreeNodeStyle style
)

Parameters

index
Type: System.Int32

The zero-based index location at which to insert the TreeNodeStyle.

style
Type: System.Web.UI.WebControls.TreeNodeStyle

The TreeNodeStyle to insert.

Use the Insert method to insert the specified TreeNodeStyle object into the TreeNodeStyleCollection object at the specified zero-based index.

As an alternative, you can append a TreeNodeStyle object to the end of the TreeNodeStyleCollection by using the Add method.

.NET Framework
Available since 2.0
Return to top
Show: