FilteredObservableCollection<T> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a filtered observable collection.
generic <typename T>
public ref class FilteredObservableCollection : System::Collections::Generic::ICollection<T>, System::Collections::Generic::IEnumerable<T>, System::Collections::Generic::IList<T>, System::Collections::IList, System::Collections::Specialized::INotifyCollectionChanged
public class FilteredObservableCollection<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T>, System.Collections.IList, System.Collections.Specialized.INotifyCollectionChanged
type FilteredObservableCollection<'T> = class
interface IList
interface ICollection
interface IEnumerable
interface IList<'T>
interface ICollection<'T>
interface seq<'T>
interface INotifyCollectionChanged
Public Class FilteredObservableCollection(Of T)
Implements ICollection(Of T), IEnumerable(Of T), IList, IList(Of T), INotifyCollectionChanged
Type Parameters
- T
The type of the collection.
- Inheritance
-
FilteredObservableCollection<T>
- Implements
Remarks
The underlying collection for this class must implement IList and INotifyCollectionChanged.
Constructors
FilteredObservableCollection<T>(IList<T>) |
Initializes a new instance of FilteredObservableCollection<T>. |
Properties
Count |
Gets the number of items in the collection. |
IsFixedSize |
Determines whether this collection has a fixed size. |
IsReadOnly |
Determines whether this collection is read-only. |
IsSynchronized |
Determines whether the collection is synchronized. |
Item[Int32] |
Gets the item at the specified location. |
SyncRoot |
Gets the object used to synchronize the collection. |
Methods
Add(Object) |
Since this collection is read-only, throws an InvalidOperationException. |
Add(T) |
Since this collection is read-only, throws an InvalidOperationException. |
Clear() |
Since this collection is read-only, throws an InvalidOperationException. |
Contains(Object) |
Determines whether the collection contains the specified object. |
Contains(T) |
Determines whether the collection contains the specified item. |
CopyTo(Array, Int32) |
Since this collection is read-only, throws an InvalidOperationException. |
CopyTo(T[], Int32) |
Since this collection is read-only, throws an InvalidOperationException. |
Filter(Predicate<T>) |
Filters the collection by the specified predicate. |
GetEnumerator() |
Gets the enumerator. |
IndexOf(Object) |
Gets the location of the specified item. |
IndexOf(T) |
Gets the location of the specified item. |
Insert(Int32, Object) |
Since this collection is read-only, throws an InvalidOperationException. |
Insert(Int32, T) |
Since this collection is read-only, throws an InvalidOperationException. |
Remove(Object) |
Since this collection is read-only, throws an InvalidOperationException. |
Remove(T) |
Since this collection is read-only, throws an InvalidOperationException. |
RemoveAt(Int32) |
Since this collection is read-only, throws an InvalidOperationException. |
StopFiltering() |
Removes the filter for the collection. |
Events
CollectionChanged |
Raised when the collection has changed. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Gets the enumerator. |
IList.Item[Int32] |
Gets the item at the specified location. |
Extension Methods
EmptyIfNull<T>(IEnumerable<T>) |
Return this enumeration in case it is not null. In case it is null return empty enumeration. |