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

Adds a new child element to specified parent element.

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

Parameters

Type
Type of the new element.
ParentID
ID of the parent element.

Return Value

New element.

Remarks

Element ID is generated automatically.

See Also

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