Class ObservableCollection<U>
Observable generic collection.
Inherited Members
Namespace: Syncfusion.Windows.Forms.Tools.Navigation
Assembly: Syncfusion.Tools.Windows.dll
Syntax
public class ObservableCollection<U> : ObservableCollectionBase<U> where U : INotifyPropertyChanged
Type Parameters
| Name | Description |
|---|---|
| U | Observable Collection |
Remarks
Item must implement System.ComponentModel.INotifyPropertyChanged.
Constructors
ObservableCollection()
Declaration
public ObservableCollection()
Methods
InsertItem(Int32, U)
Inserts an element into the System.Collections.ObjectModel.Collection at the specified index.
Declaration
protected override void InsertItem(int index, U item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index at which |
| U | item | The object to insert. The value can be null for reference types. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
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. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
SetItem(Int32, U)
Replaces the element at the specified index.
Declaration
protected override void SetItem(int index, U item)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The zero-based index of the element to replace. |
| U | item | The new value for the element at the specified index. The value can be null for reference types. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException |
|
Events
ItemPropertyChanged
Occurs when property of item within the collection is changed.
Declaration
public event PropertyChangedEventHandler ItemPropertyChanged
Event Type
| Type |
|---|
| System.ComponentModel.PropertyChangedEventHandler |