Class ObservableCollectionBase<T>
Base observable generic collection.
Inheritance
Namespace: Syncfusion.Windows.Forms.Tools.Navigation
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ObservableCollectionBase<T> : Collection<T>
Type Parameters
| Name | Description |
|---|---|
| T | Observable CollectionBase |
Constructors
ObservableCollectionBase()
Declaration
public ObservableCollectionBase()
Methods
AddRange(IEnumerable<T>)
Adds the elements of the specified collection to the end of the
Declaration
public virtual void AddRange(IEnumerable<T> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.IEnumerable<T> | collection | The collection whose elements should be added to the end of the |
FireCollectionChangedEvent(CollectionChangeAction, T)
Fires CollectionChanged event.
Declaration
protected void FireCollectionChangedEvent(CollectionChangeAction action, T item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.ComponentModel.CollectionChangeAction | action | One of the System.ComponentModel.CollectionChangeActionvalues that specifies how the collection changed. |
| T | item | An |
InsertItem(Int32, T)
Inserts an element into the System.Collections.ObjectModel.Collection at the specified index.
Declaration
protected override void InsertItem(int index, T item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which |
| T | item | The object to insert. The value can be null for reference types. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
InsertRange(Int32, IEnumerable<T>)
Inserts the elements of a collection into the
Declaration
public virtual void InsertRange(int index, IEnumerable<T> collection)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which the new elements should be inserted. |
| System.Collections.Generic.IEnumerable<T> | collection | The collection whose elements should be inserted into the |
RemoveItem(Int32)
Removes the element at the specified index of the System.Collections.ObjectModel.Collection.
Declaration
protected override void RemoveItem(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to remove. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
SetItem(Int32, T)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, T item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to replace. |
| T | item | The new value for the element at the specified index. The value can be null for reference types. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
Events
CollectionChanged
Occurs when collection is changed.
Declaration
public event CollectionChangeEventHandler CollectionChanged
Event Type
| Type |
|---|
| System.ComponentModel.CollectionChangeEventHandler |