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