APNSoft Controls [4.5.2.20] - API Reference
TreeViewElementCollection.AddRootItem Method (String)

Adds a new item to the root of collection.

[Visual Basic]
Overloads Public Function AddRootItem( _
   ByVal Title As String _
) As TreeViewElement
[C#]
public TreeViewElement AddRootItem(
   string Title
);

Parameters

Title
The text (caption) displayed for the item.

Return Value

New item element.

Remarks

Item ID is generated automatically.

See Also

TreeViewElementCollection Class | APNSoft.WebControls Namespace | TreeViewElementCollection.AddRootItem Overload List