skmMenu: An ASP.NET Menu Control

Menu.Items Property

Returns the Menu's top-level MenuItems.

public MenuItemCollection Items {get;}

Remarks

This returns a MenuItemCollection instance holding the top-level menu items only. If you want to drill down into submenu items, you must programmatically recurse down. For example, imagine we had a menu with two top-level menu items, File and Help, and File had three menu items, New, Open, and Save. To programmatically access the New menu item from the Menu you'd use:

             MenuItem FileNewMenuItem = MenuControlID.Items[0].Items[0];
            

See Also

Menu Class | skmMenu Namespace