Skip to main content

NavigationBarItemCollection

Namespace: Wisej.Web.Ext.NavigationBar

Assembly: Wisej.Web.Ext.NavigationBar

Contains a collection of NavigationBarItem objects.

public class NavigationBarItemCollection : IList, ICollection, IEnumerable, IList<NavigationBarItem>, ICollection<NavigationBarItem>, IEnumerable<NavigationBarItem>

Properties

Instance memberCount

Int32: Returns the number of items in the collection.

Instance memberItem(index)

NavigationBarItem: Returns or sets a NavigationBarItem in the collection at the specified index.

Throws:

Instance memberItem(name)

NavigationBarItem: Returns the NavigationBarItem with the specified key from the collection.

Methods

Instance memberAdd(item)

Adds a NavigationBarItem to the collection.

ParameterTypeDescription
itemNavigationBarItemThe NavigationBarItem to add.

Throws:

Instance memberAdd(text)

Creates a NavigationBarItem with the specified text, and adds it to the collection.

ParameterTypeDescription
textStringThe text to display on the NavigationBarItem.

Instance memberAdd(key, text)

Creates a NavigationBarItem with the specified key and text and adds it to the collection.

ParameterTypeDescription
keyStringThe name of the NavigationBarItem.
textStringThe text to display on the NavigationBarItem.

Instance memberAdd(key, text, icon)

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

ParameterTypeDescription
keyStringThe name of the NavigationBarItem.
textStringThe text to display on the NavigationBarItem.
iconStringThe Url or name of the icon to display on the NavigationBarItem.

Instance memberAddRange(items)

Adds a set NavigationBarItem objects to the collection.

ParameterTypeDescription
itemsNavigationBarItem[]An array of type NavigationBarItem that contains the NavigationBarItem to add.

Throws:

Instance memberClear()

Removes all the NavigationBarItem instances from the collection.

Instance memberClear(dispose)

Removes and disposes all NavigationBarItem instances from the collection.

ParameterTypeDescription
disposeBooleanIndicates whether to dispose the NavigationBarItem instances removed from the collection.

Instance memberContains(item)

Determines whether a specified NavigationBarItem is in the collection.

ParameterTypeDescription
itemNavigationBarItemThe NavigationBarItem to locate in the collection.

Returns: Boolean. true if the specified NavigationBarItem is in the collection; otherwise, false.

Throws:

Instance memberContainsKey(key)

Determines whether the collection contains a NavigationBarItem with the specified key.

ParameterTypeDescription
keyStringThe name of the NavigationBarItem to search for.

Returns: Boolean. true to indicate a NavigationBarItem with the specified key was found in the collection; otherwise, false.

Instance memberCopyTo(array, index)

Copies the NavigationBarItem instances in the collection to the specified array, starting at the specified index.

ParameterTypeDescription
arrayNavigationBarItem[]The one-dimensional array that is the destination of the items copied from the collection. The array must have zero-based indexing.
indexInt32The zero-based index in the array at which copying begins.

Throws:

Instance memberIndexOf(item)

Returns the index of the NavigationBarItem in the collection.

ParameterTypeDescription
itemNavigationBarItemThe NavigationBarItem to locate in the collection.

Returns: Int32. The zero-based index of the item; -1 if it cannot be found.

Throws:

Instance memberIndexOfKey(key)

Returns the index of the first occurrence of the NavigationBarItem with the specified key.

ParameterTypeDescription
keyStringThe name of the NavigationBarItem to find in the collection.

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

Instance memberInsert(index, item)

Inserts an existing NavigationBarItem into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the NavigationBarItem is inserted.
itemNavigationBarItemThe NavigationBarItem to insert in the collection.

Instance memberInsert(index, text)

Creates a new NavigationBarItem with the specified text and inserts it into the collection at the specified index.

ParameterTypeDescription
indexInt32The zero-based index location where the NavigationBarItem is inserted.
textStringThe text to display in the NavigationBarItem.

Instance memberInsert(index, key, text)

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

ParameterTypeDescription
indexInt32The zero-based index location where the NavigationBarItem is inserted.
keyStringThe name of the NavigationBarItem.
textStringThe text to display on the NavigationBarItem.

Instance memberInsert(index, key, text, icon)

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

ParameterTypeDescription
indexInt32The zero-based index location where the NavigationBarItem is inserted.
keyStringThe name of the item.
textStringThe text to display on the NavigationBarItem.
iconStringThe Url or name of the icon to display on the NavigationBarItem.

Instance memberRemove(item)

Removes the NavigationBarItem from the collection.

ParameterTypeDescription
itemNavigationBarItemThe NavigationBarItem to remove.

Throws:

Instance memberRemoveAt(index)

Removes the NavigationBarItem at the specified index from the collection.

ParameterTypeDescription
indexInt32The zero-based index of the NavigationBarItem to remove.

Instance memberRemoveByKey(key)

Removes the NavigationBarItem with the specified key from the collection.

ParameterTypeDescription
keyStringThe name of the NavigationBarItem to remove.