MenuItemCollection::AddAt Method (Int32, MenuItem^)
.NET Framework (current version)
Inserts the specified MenuItem object in the current MenuItemCollection object at the specified index location.
Assembly: System.Web (in System.Web.dll)
Parameters
- index
-
Type:
System::Int32
The zero-based index location at which to insert the MenuItem.
- child
-
Type:
System.Web.UI.WebControls::MenuItem^
The MenuItem to insert.
The following code example demonstrates how to use the AddAt method to programmatically insert a MenuItem object in a MenuItemCollection object at a specified index location.
.NET Framework
Available since 2.0
Available since 2.0
Show:
