Edit

Share via


TreeNodeStyleCollection.Insert(Int32, TreeNodeStyle) Method

Definition

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

public:
 void Insert(int index, System::Web::UI::WebControls::TreeNodeStyle ^ style);
public void Insert (int index, System.Web.UI.WebControls.TreeNodeStyle style);
member this.Insert : int * System.Web.UI.WebControls.TreeNodeStyle -> unit
Public Sub Insert (index As Integer, style As TreeNodeStyle)

Parameters

index
Int32

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

style
TreeNodeStyle

The TreeNodeStyle to insert.

Remarks

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.

Applies to

See also