TreeNodeStyleCollection::Insert Method (Int32, TreeNodeStyle^)

 

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: