Skip to main content

BootstrapMenuItemCollection Members

Represents a collection that maintains menu items.

Constructors

Name Description
BootstrapMenuItemCollection() Initializes a new instance of the BootstrapMenuItemCollection class with default settings.
BootstrapMenuItemCollection(BootstrapMenuItem) Initializes a new instance of the BootstrapMenuItemCollection class with the specified owner.

Properties

Name Description
Count Gets the number of items contained within the collection. Inherited from StateManagedCollectionBase.
IsEmpty Gets a value indicating whether the collection is empty. Inherited from StateManagedCollectionBase.
Item[Int32] Provides indexed access to individual items in the collection.
Owner Gets the collection’s owner. Inherited from Collection.

Methods

Name Description
Add() Adds a new menu item to the end of the collection and returns the newly created object.
Add(T) Adds the specified element to the end of the collection. Inherited from Collection<T>.
Add(T[]) Adds the specified elements to the end of the collection. Inherited from Collection<T>.
Add(String, String, String, String, String) Adds a new menu item to the collection and specifies the item’s display text, name, associated image and URL as well as the target of the URL content.
Add(String, String, String, String) Adds a new menu item to the collection and specifies the item’s display text, name, associated image and URL.
Add(String, String, String) Adds a new menu item to the collection and specifies the item’s display text, name and associated image.
Add(String, String) Adds a new item to the collection and specifies the item’s display text and name.
Add(String) Adds a new item to the collection and specifies the item’s display text.
AddRange(IEnumerable<T>) Adds a collection of items to the end of the collection. Inherited from Collection<T>.
AddRange(IEnumerable<BootstrapMenuItem>) Appends an array of menu items fields to the collection.
Assign(IAssignableCollection) Copies the items from the specified IAssignableCollection-supported object to the current object. Inherited from Collection.
Clear() Clears the collection by removing all its items. Inherited from StateManagedCollectionBase.
Contains(T) Determines whether the collection contains the specified item. Inherited from Collection<T>.
ConvertAll<TOutput>(Converter<T, TOutput>) For internal use only. Inherited from Collection<T>.
ConvertAll<TOutput>(Converter<BootstrapMenuItem, TOutput>) For internal use only.
CopyTo(T[], Int32) Copies the items from the collection to the specified array, starting at the specified index in the array object. Inherited from Collection<T>.
CopyTo(Array, Int32) Copies the items from the collection to the specified array, starting at the specified index in the array object. Inherited from StateManagedCollectionBase.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
Find(Predicate<T>) Returns the first element that matches the conditions defined by the specified predicate. Inherited from Collection<T>.
Find(Predicate<BootstrapMenuItem>) Returns the item that meets the specified criteria.
FindAll(Predicate<T>) Returns all elements that match the conditions defined by the specified predicate. Inherited from Collection<T>.
FindAll(Predicate<BootstrapMenuItem>) Returns all elements that match the conditions defined by the specified predicate.
FindAllRecursive(Predicate<T>) Returns all elements that match the conditions defined by the specified predicate. Inherited from HierarchicalCollection<T>.
FindAllRecursive(Predicate<BootstrapMenuItem>) Returns all elements that match the conditions defined by the specified predicate.
FindByName(String) Returns an item with the specified MenuItem.Name property value.
FindByText(String) Returns a group item with the specified MenuItem.Text property value.
FindRecursive(Predicate<T>) Returns the first element that matches the conditions defined by the specified predicate. Inherited from HierarchicalCollection<T>.
FindRecursive(Predicate<BootstrapMenuItem>) Returns the first element that matches the conditions defined by the specified predicate.
ForEach(Action<T>) Performs the specified action on each element of the current collection. Inherited from Collection<T>.
ForEach(Action<BootstrapMenuItem>) Performs the specified action on each element of the BootstrapMenuItemCollection.
GetEnumerator() Returns a reference to an enumerator object, which is used to iterate through the collection. Inherited from StateManagedCollectionBase.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetHierarchyData(Object) Returns a hierarchical data item for the specified enumerated item. Inherited from HierarchicalCollection<T>.
GetType() Gets the Type of the current instance. Inherited from Object.
GetVisibleItem(Int32) Gets an item by its visible index.
GetVisibleItemCount() Returns the number of visible items in an item collection. Inherited from Collection<T>.
GetVisibleItems() Obtains collection items whose visibility is enabled. Inherited from Collection<T>.
IndexOf(T) Searches for the specified item and returns the zero-based index of its first occurrence within the collection. Inherited from Collection<T>.
IndexOf(Predicate<T>) Returns the zero-based index of the first element that matches the conditions defined by the specified predicate. Inherited from Collection<T>.
IndexOf(Predicate<BootstrapMenuItem>) Returns the zero-based index of the specified item in the collection.
IndexOfName(String) Searches for an item object specified by the value of its MenuItem.Name property and returns the zero-based index of the first occurrence within the item collection. Inherited from MenuItemCollection.
IndexOfText(String) Searches for an item object specified by the value of its MenuItem.Text property and returns the zero-based index of the first occurrence within the item collection. Inherited from MenuItemCollection.
Insert(Int32, T) Inserts the specified element into the collection at the specified position. Inherited from Collection<T>.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
Move(Int32, Int32) Moves a specific collection item to another position within the list. Inherited from Collection.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Remove(T) Removes the specified element from the collection. Inherited from Collection<T>.
RemoveAll(Predicate<T>) Removes all items that match the conditions defined by the specified predicate from the collection. Inherited from Collection<T>.
RemoveAll(Predicate<BootstrapMenuItem>) Removes all items that match the conditions defined by the specified predicate from the collection.
RemoveAllRecursive(Predicate<T>) Removes all items that match the conditions defined by the specified predicate from the hierarchical collection. Inherited from HierarchicalCollection<T>.
RemoveAllRecursive(Predicate<BootstrapMenuItem>) Removes all items that match the conditions defined by the specified predicate from the hierarchical collection.
RemoveAt(Int32) Removes the collection item at the specified index location from the current collection. Inherited from Collection.
SetDirty() For internal use only. Inherited from StateManagedCollectionBase.
ToString() Returns a string that represents the current object. Inherited from Collection.
See Also