Skip to main content

RibbonBarCollectionBase<TOwner, TElement>

Namespace: Wisej.Web.Ext.RibbonBar

Assembly: Wisej.Web.Ext.RibbonBar

Base implementation of the component collections managed in the RibbonBar control.

public class RibbonBarCollectionBase<TOwner, TElement> : IList<TElement>, ICollection<TElement>, IEnumerable<TElement>, IEnumerable, IList, ICollection

Parameters

NameDescription
TOwner
TElement

Properties

Instance memberCount

Int32: Returns the number of TElement items in the collection.

Instance memberItem(index)

TElement: Returns the TElement at the specified location.

Throws:

Methods

Instance memberAdd(item)

ParameterTypeDescription
itemTElement

Instance memberClear()

Removes all the items from the collection.

Instance memberClear(dispose)

Removes and optionally disposes all the items from the collection.

ParameterTypeDescription
disposeBoolean

Instance memberContains(item)

ParameterTypeDescription
itemTElement

Returns: Boolean.

Instance memberCopyTo(array, index)

ParameterTypeDescription
arrayTElement[]
indexInt32

Instance memberGetEnumerator()

Returns an IEnumerator to iterated the items in the collection.

Returns: IEnumerator<TElement>. An instance of IEnumerator.

Instance memberIndexOf(item)

ParameterTypeDescription
itemTElement

Returns: Int32.

Instance memberInsert(index, item)

ParameterTypeDescription
indexInt32
itemTElement

Instance memberRemove(item)

ParameterTypeDescription
itemTElement

Returns: Boolean.

Instance memberRemoveAt(index)

Returns the TElement at the specified position.

ParameterTypeDescription
indexInt32The index of the TElement to removed from the collection.

Events

Instance memberCollectionChanged

CollectionChangeEventHandler Fired when the collection changes.