NavigationBarItemCollection
Wisej.Web.Ext.NavigationBar.NavigationBarItemCollection
Namespace: Wisej.Web.Ext.NavigationBar
Assembly: Wisej.Web.Ext.NavigationBar (3.2.0.0)
Contains a collection of NavigationBarItem objects.
public class NavigationBarItemCollection : IList, ICollection, IEnumerable, IList<NavigationBarItem>, ICollection<NavigationBarItem>, IEnumerable<NavigationBarItem>
Properties
Count

Int32: Returns the number of items in the collection.
Item(index)

NavigationBarItem: Returns or sets a NavigationBarItem in the collection at the specified index.
Throws:
ArgumentOutOfRangeException index is less than zero or greater than the highest available index.
ArgumentNullException value is null.
Item(name)

NavigationBarItem: Returns the NavigationBarItem with the specified key from the collection.
Methods
Add(item)

Adds a NavigationBarItem to the collection.
Throws:
ArgumentNullException The specified item is null.
Add(text)

Creates a NavigationBarItem with the specified text, and adds it to the collection.
Add(key, text)

Creates a NavigationBarItem with the specified key and text and adds it to the collection.
Add(key, text, icon)

Creates a NavigationBarItem with the specified key, text, and image, and adds it to the collection.
AddRange(items)

Adds a set NavigationBarItem objects to the collection.
items
An array of type NavigationBarItem that contains the NavigationBarItem to add.
Throws:
ArgumentNullException The value of items is null.
Clear()

Removes all the NavigationBarItem instances from the collection.
Clear(dispose)

Removes and disposes all NavigationBarItem instances from the collection.
dispose
Indicates whether to dispose the NavigationBarItem instances removed from the collection.
Contains(item)

Determines whether a specified NavigationBarItem is in the collection.
Returns: Boolean. true if the specified NavigationBarItem is in the collection; otherwise, false.
Throws:
ArgumentNullException The value of item is null.
ContainsKey(key)

Determines whether the collection contains a NavigationBarItem with the specified key.
Returns: Boolean. true to indicate a NavigationBarItem with the specified key was found in the collection; otherwise, false.
CopyTo(array, index)

Copies the NavigationBarItem instances in the collection to the specified array, starting at the specified index.
array
The one-dimensional array that is the destination of the items copied from the collection. The array must have zero-based indexing.
Throws:
ArgumentNullException array is null.
ArgumentOutOfRangeException array is less than zero.
ArgumentException array is multidimensional or the number of elements in the NavigationBarItemCollection is greater than the available space from index to the end of array .
IndexOf(item)

Returns the index of the NavigationBarItem in the collection.
Returns: Int32. The zero-based index of the item; -1 if it cannot be found.
Throws:
ArgumentNullException The value of item is null.
IndexOfKey(key)

Returns the index of the first occurrence of the NavigationBarItem with the specified key.
Returns: Int32. The zero-based index of the first occurrence of a NavigationBarItem with the specified key, if found; otherwise, -1.
Insert(index, item)

Inserts an existing NavigationBarItem into the collection at the specified index.
Insert(index, text)

Creates a new NavigationBarItem with the specified text and inserts it into the collection at the specified index.
Insert(index, key, text)

Creates a new NavigationBarItem with the specified key and text, and inserts it into the collection at the specified index.
Insert(index, key, text, icon)

Creates a NavigationBarItem with the specified key, text, and image, and inserts it into the collection at the specified index.
Remove(item)

Removes the NavigationBarItem from the collection.
Throws:
ArgumentNullException The item parameter is null.
RemoveAt(index)

Removes the NavigationBarItem at the specified index from the collection.
RemoveByKey(key)

Removes the NavigationBarItem with the specified key from the collection.
Last updated
Was this helpful?