RibbonBarCollectionBase<TOwner, TElement>
Namespace: Wisej.Web.Ext.RibbonBar
Assembly: Wisej.Web.Ext.RibbonBar
Base implementation of the component collections managed in the RibbonBar control.
- C#
- VB.NET
public class RibbonBarCollectionBase<TOwner, TElement> : IList<TElement>, ICollection<TElement>, IEnumerable<TElement>, IEnumerable, IList, ICollection
Public Class RibbonBarCollectionBase(Of TOwner, TElement)
Inherits IList(Of TElement)
Implements ICollection(Of TElement), IEnumerable(Of TElement), IEnumerable, IList, ICollection
Parameters
| Name | Description |
|---|---|
| TOwner | |
| TElement |
Properties
Count
Int32: Returns the number of TElement items in the collection.
Item(index)
TElement: Returns the TElement at the specified location.
Throws:
- NotSupportedException Cannot assign a TElement item.
Methods
Add(item)
| Parameter | Type | Description |
|---|---|---|
| item | TElement |
Clear()
Removes all the items from the collection.
Clear(dispose)
Removes and optionally disposes all the items from the collection.
| Parameter | Type | Description |
|---|---|---|
| dispose | Boolean |
Contains(item)
| Parameter | Type | Description |
|---|---|---|
| item | TElement |
Returns: Boolean.
CopyTo(array, index)
| Parameter | Type | Description |
|---|---|---|
| array | TElement[] | |
| index | Int32 |
GetEnumerator()
Returns an IEnumerator to iterated the items in the collection.
Returns: IEnumerator<TElement>. An instance of IEnumerator.
IndexOf(item)
| Parameter | Type | Description |
|---|---|---|
| item | TElement |
Returns: Int32.
Insert(index, item)
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | |
| item | TElement |
Remove(item)
| Parameter | Type | Description |
|---|---|---|
| item | TElement |
Returns: Boolean.
RemoveAt(index)
Returns the TElement at the specified position.
| Parameter | Type | Description |
|---|---|---|
| index | Int32 | The index of the TElement to removed from the collection. |
Events
CollectionChanged
CollectionChangeEventHandler Fired when the collection changes.