APNSoft Controls [4.5.2.20] - API Reference
MenuElementCollection.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 MenuElement
[C#]
public MenuElement 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

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