System.Web.UI.WebControls.MenuItemCollection: Method Members

The methods of System.Web.UI.WebControls.MenuItemCollection are listed below. For a list of all members, see the MenuItemCollection Members list.

See Also: Inherited members from System.Object

Public Methods

Add(MenuItem)

Appends the specified System.Web.UI.WebControls.MenuItem object to the end of the current System.Web.UI.WebControls.MenuItemCollection object.

AddAt(int, MenuItem)

Inserts the specified System.Web.UI.WebControls.MenuItem object in the current System.Web.UI.WebControls.MenuItemCollection object at the specified index location.

Clear()

Removes all items from the current System.Web.UI.WebControls.MenuItemCollection object.

Contains(MenuItem) : bool

Determines whether the specified System.Web.UI.WebControls.MenuItem object is in the collection.

CopyTo(Array, int)

Copies all the items from the System.Web.UI.WebControls.MenuItemCollection object to a compatible one-dimensional Array, starting at the specified index in the target array.

CopyTo(MenuItem[], int)

Copies all the items from the System.Web.UI.WebControls.MenuItemCollection object to a compatible one-dimensional array of System.Web.UI.WebControls.MenuItem objects, starting at the specified index in the target array.

GetEnumerator() : IEnumerator

Returns an enumerator that can be used to iterate through the items in the current System.Web.UI.WebControls.MenuItemCollection object.

IndexOf(MenuItem) : int

Determines the index of the specified System.Web.UI.WebControls.MenuItem object in the collection.

Remove(MenuItem)

Removes the specified System.Web.UI.WebControls.MenuItem object from the System.Web.UI.WebControls.MenuItemCollection object.

RemoveAt(int)

Removes the System.Web.UI.WebControls.MenuItem object at the specified index location from the current System.Web.UI.WebControls.MenuItemCollection object.