Class ObservableList<T>
Inheritance
System.Object
ObservableList<T>
Syntax
public class ObservableList<T> : IList<T>
Type Parameters
Constructors
ObservableList()
Declaration
ObservableList(IEnumerable<T>)
Declaration
public ObservableList(IEnumerable<T> collection)
Parameters
Type |
Name |
Description |
IEnumerable<T> |
collection |
|
ObservableList(Int32)
Declaration
public ObservableList(int capacity)
Parameters
Type |
Name |
Description |
System.Int32 |
capacity |
|
Properties
Count
Declaration
public int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
IsReadOnly
Declaration
public bool IsReadOnly { get; }
Property Value
Type |
Description |
System.Boolean |
|
Item[Int32]
Declaration
public T this[int index] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Property Value
Methods
Add(T)
Declaration
Parameters
Type |
Name |
Description |
T |
item |
|
Add(T[])
Declaration
public void Add(params T[] items)
Parameters
Type |
Name |
Description |
T[] |
items |
|
Clear()
Declaration
Contains(T)
Declaration
public bool Contains(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Boolean |
|
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type |
Name |
Description |
T[] |
array |
|
System.Int32 |
arrayIndex |
|
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type |
Description |
IEnumerator<T> |
|
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Int32 |
|
Insert(Int32, T)
Declaration
public void Insert(int index, T item)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
T |
item |
|
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type |
Name |
Description |
T |
item |
|
Returns
Type |
Description |
System.Boolean |
|
Remove(T[])
Declaration
public int Remove(params T[] items)
Parameters
Type |
Name |
Description |
T[] |
items |
|
Returns
Type |
Description |
System.Int32 |
|
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Events
ItemAdded
Declaration
public event ListChangedEventHandler<T> ItemAdded
Event Type
ItemRemoved
Declaration
public event ListChangedEventHandler<T> ItemRemoved
Event Type