TreeNodeStyleCollection::Add Method (TreeNodeStyle^)

 

Appends the specified TreeNodeStyle object to the end of the TreeNodeStyleCollection object.

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

public:
int Add(
	TreeNodeStyle^ style
)

Parameters

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

The TreeNodeStyle to append.

Return Value

Type: System::Int32

The position into which the new TreeNodeStyle was inserted.

Use the Add method to append the specified TreeNodeStyle object to the end of the TreeNodeStyleCollection object.

System_CAPS_noteNote

The TreeNodeStyleCollection allows you to add null, as well as duplicate TreeNodeStyle objects.

.NET Framework
Available since 2.0
Return to top
Show: