Wisej.Web.Menu MenuItemCollection
Namespace: Wisej.Web
Assembly: Wisej.Framework (3.0.0.0)
Represents a collection of MenuItem objects.
Initializes a new instance of MenuItemCollection.
Name | Type | Description |
---|---|---|
Int32: Returns the number of items in the collection.
Boolean: Returns a value indicating whether this collection can be modified.
MenuItem: Retrieves the item at the specified index within the collection.
Throws:
ArgumentOutOfRangeException The index was less than zero; or the index was greater of equal to the count of items in the collection.
MenuItem: Retrieves the item at the specified index within the collection.
Adds an item to the list of items.
Returns: MenuItem.
Adds an item to the list of items.
Returns: MenuItem.
Adds an item to the list of items.
Returns: MenuItem.
Adds an item to the list of items.
Returns: Int32.
Adds an item to the list of items.
Returns: Int32.
Adds a collection of items to the list.
Removes all items from the Menu.
Removes and disposes all items from the Menu.
Determines if the specified item is located within the collection.
Returns: Boolean. true if the item is located within the collection; otherwise, false.
Determines if the specified item is located within the collection.
Returns: Boolean. true if the item is located within the collection; otherwise, false.
Copies the entire collection into an existing array of objects at a specified location within the array.
Finds all the items with a specific key.
Returns: MenuItem[].
Returns an enumerator that can be used to iterate through the item collection.
Returns: IEnumerator. A IEnumerator that represents the item collection.
Retrieves the index within the collection of the specified item.
Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.
Throws:
ArgumentNullException The value parameter was null.
Retrieves the index within the collection of the specified item.
Returns: Int32. The zero-based index where the item is located within the collection; otherwise, -1.
Removes the specified item from the list.
Removes an item at the specified index.
Throws:
ArgumentOutOfRangeException The index parameter was less than zero, or the index parameter was greater than or equal to the count of items in the collection.
Removes the item with the specified key.
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
Parameter | Type | Description |
---|---|---|
caption
The text of the new menu item.
caption
The text of the new menu item.
onClick
An event handler for the click event.
caption
The text of the new menu item.
items
List of child menu items.
item
The new menu item.
index
The index where to add/insert the new menu item.
item
The MenuItem to add to the collection
items
dispose
Indicates whether the removed items should be disposed.
value
An object representing the item to locate in the collection.
key
The key of the item to locate.
dest
The object array to copy the collection to.
index
The location in the destination array to copy the collection to.
key
The key of the item to locate.
searchAllChildren
Indicates that the search should include child items.
value
The menu item to locate.
key
The key for the menu item to locate.
item
The item to remove.
index
The index of the item to remove.
key
The key of the menu item to remove.
owner
The Menu object that owns the collection.