APNSoft Controls [4.5.2.20] - API Reference
TreeViewElementCollection.AddToRoot Method (String, Types)

Adds a new element to the root of collection.

[Visual Basic]
Overloads Public Function AddToRoot( _
   ByVal NewID As String, _
   ByVal Type As Types _
) As TreeViewElement
[C#]
public TreeViewElement AddToRoot(
   string NewID,
   Types Type
);

Parameters

NewID
ID of the new element.
Type
Type of the new element.

Return Value

New element.

See Also

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