Observable List class
More...
|
| ObservableList () |
| Initializes a virtual instance of the ObservableList<T> class. More...
|
|
| ObservableList (int capacity) |
| Initializes a virtual instance of the ObservableList<T> class. More...
|
|
| ObservableList (IEnumerable< T > collection) |
| Initializes a virtual instance of the ObservableList<T> class. More...
|
|
virtual void | Add (T item) |
| Adds an object to the end of the T:System.Collections.Generic.List`1. More...
|
|
virtual void | AddRange (IEnumerable< T > collection) |
| Adds the range. More...
|
|
virtual void | Clear () |
| Removes all elements from the T:System.Collections.Generic.List`1. More...
|
|
void | ClearDelegates () |
| Clears the delegates from the list. More...
|
|
bool | Contains (T item) |
| Determines whether the T:System.Collections.Generic.ICollection`1 contains a specific value. More...
|
|
void | CopyTo (T[] array, int arrayIndex) |
| Copies to. More...
|
|
IEnumerator< T > | GetEnumerator () |
| Returns an enumerator that iterates through the collection. More...
|
|
int | IndexOf (T item) |
| Determines the index of a specific item in the T:System.Collections.Generic.IList`1. More...
|
|
virtual void | Insert (int index, T item) |
| Inserts an element into the T:System.Collections.Generic.List`1 at the specified index. More...
|
|
virtual void | InsertRange (int index, IEnumerable< T > collection) |
| Inserts the range. More...
|
|
void | NotifyObjectChanged (object itemChanged) |
| Notifies the list that an item in the list has been modified. More...
|
|
virtual bool | Remove (T item) |
| Removes the first occurrence of a specific object from the T:System.Collections.Generic.List`1. More...
|
|
virtual int | RemoveAll (Predicate< T > match) |
| Removes all. More...
|
|
virtual void | RemoveAt (int index) |
| Removes the element at the specified index of the T:System.Collections.Generic.List`1. More...
|
|
virtual void | RemoveRange (int index, int count) |
| Removes a range of elements from the T:System.Collections.Generic.List`1. More...
|
|
|
NotifyCollectionChangedEventHandler | CollectionChanged |
| Occurs when the collection changes. More...
|
|
PropertyChangedEventHandler | PropertyChanged |
| Occurs when a property value changes. More...
|
|
int | Count [get] |
| Gets the number of elements contained in the T:System.Collections.Generic.ICollection`1. More...
|
|
bool | IsReadOnly [get] |
| Gets a value indicating whether the T:System.Collections.Generic.ICollection`1 is read-only. More...
|
|
T | this[int index] [get, set] |
| Gets or sets the element at the specified index. More...
|
|
Observable List class
- Template Parameters
-
T | Object type that the list holds |
Definition at line 35 of file ObservableList.cs.
Initializes a virtual instance of the ObservableList<T> class.
- Parameters
-
capacity | The number of elements that the virtual list can initially store. |
Definition at line 51 of file ObservableList.cs.
Adds an object to the end of the T:System.Collections.Generic.List`1.
- Parameters
-
item | The object to be added to the end of the T:System.Collections.Generic.List`1. The value can be null for reference types. |
Definition at line 172 of file ObservableList.cs.
Adds the range.
- Parameters
-
collection | The collection. |
Definition at line 183 of file ObservableList.cs.
Removes all elements from the T:System.Collections.Generic.List`1.
Definition at line 193 of file ObservableList.cs.
Determines whether the T:System.Collections.Generic.ICollection`1 contains a specific value.
- Parameters
-
item | The object to locate in the T:System.Collections.Generic.ICollection`1. |
- Returns
- true if item is found in the T:System.Collections.Generic.ICollection`1; otherwise, false.
Definition at line 220 of file ObservableList.cs.
Copies to.
- Parameters
-
array | The array. |
arrayIndex | Index of the array. |
Definition at line 230 of file ObservableList.cs.
Returns an enumerator that iterates through the collection.
- Returns
- A T:System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
Definition at line 242 of file ObservableList.cs.
Determines the index of a specific item in the T:System.Collections.Generic.IList`1.
- Parameters
-
item | The object to locate in the T:System.Collections.Generic.IList`1. |
- Returns
- The index of item if found in the list; otherwise, -1.
Definition at line 252 of file ObservableList.cs.
Inserts an element into the T:System.Collections.Generic.List`1 at the specified index.
- Parameters
-
index | The zero-based index at which item should be inserted. |
item | The object to insert. The value can be null for reference types. |
Definition at line 265 of file ObservableList.cs.
Inserts the range.
- Parameters
-
index | The index. |
collection | The collection. |
Definition at line 277 of file ObservableList.cs.
Notifies the collection changed.
- Parameters
-
args | The NotifyCollectionChangedEventArgs instance containing the event data. |
Definition at line 368 of file ObservableList.cs.
Notifies the list that an item in the list has been modified.
- Parameters
-
itemChanged | The item that was changed. |
Definition at line 288 of file ObservableList.cs.
Notifies the property changed.
- Parameters
-
propertyName | Name of the property. |
Definition at line 379 of file ObservableList.cs.
Removes the first occurrence of a specific object from the T:System.Collections.Generic.List`1.
- Parameters
-
item | The object to remove from the T:System.Collections.Generic.List`1. The value can be null for reference types. |
- Returns
- true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the T:System.Collections.Generic.List`1.
Definition at line 306 of file ObservableList.cs.
Removes the element at the specified index of the T:System.Collections.Generic.List`1.
- Parameters
-
index | The zero-based index of the element to remove. |
Definition at line 329 of file ObservableList.cs.
Removes a range of elements from the T:System.Collections.Generic.List`1.
- Parameters
-
index | The zero-based starting index of the range of elements to remove. |
count | The number of elements to remove. |
Definition at line 341 of file ObservableList.cs.
Gets the number of elements contained in the T:System.Collections.Generic.ICollection`1.
Definition at line 127 of file ObservableList.cs.
Gets a value indicating whether the T:System.Collections.Generic.ICollection`1 is read-only.
Definition at line 136 of file ObservableList.cs.
Gets or sets the element at the specified index.
- Parameters
-
- Returns
Definition at line 152 of file ObservableList.cs.
The documentation for this class was generated from the following file: