System.Web.UI.WebControls.MenuItemCollection Members

The members of System.Web.UI.WebControls.MenuItemCollection are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.UI.WebControls.MenuItemCollection class using the default values.

Initializes a new instance of the System.Web.UI.WebControls.MenuItemCollection class using the specified parent menu item (or owner).

Public Properties

[read-only]
Countint.

Gets the number of menu items contained in the current System.Web.UI.WebControls.MenuItemCollection object.

[read-only]
IsSynchronizedbool.

Gets a value indicating whether access to the System.Web.UI.WebControls.MenuItemCollection object is synchronized (thread safe).

[read-only]
default property
Item(int)MenuItem. Documentation for this section has not yet been entered.
[read-only]
SyncRootobject.

Gets an object that can be used to synchronize access to the System.Web.UI.WebControls.MenuItemCollection 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.

Explicitly Implemented Interface Members

ICollection.CopyToDocumentation for this section has not yet been entered.
[read-only]
System.Web.UI.IStateManager.IsTrackingViewStatebool.

Gets a value that indicates whether the System.Web.UI.WebControls.MenuItemCollection object is saving changes to its view state.

System.Web.UI.IStateManager.LoadViewState

Loads the System.Web.UI.WebControls.MenuItemCollection object's previously saved view state.

System.Web.UI.IStateManager.SaveViewState

Saves the changes to view state to an object.

System.Web.UI.IStateManager.TrackViewState

Instructs the System.Web.UI.WebControls.MenuItemCollection object to track changes to its view state.