Click or drag to resize

ListCollectionViewListAdapterT Class

Adapter for a ListCollectionView that exposes the content as a read-only collection with an IList interface.
Inheritance Hierarchy
SystemObject
  TomsToolbox.WpfListCollectionViewListAdapterT

Namespace: TomsToolbox.Wpf
Assembly: TomsToolbox.Wpf (in TomsToolbox.Wpf.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public sealed class ListCollectionViewListAdapter<T> : IObservableCollection<T>, 
	IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, INotifyCollectionChanged, 
	INotifyPropertyChanged, IList, ICollection

Type Parameters

T
The type of elements in the collection.

The ListCollectionViewListAdapterT type exposes the following members.

Constructors
 NameDescription
Public methodListCollectionViewListAdapterT Initializes a new instance of the ListCollectionViewListAdapterT class.
Top
Properties
 NameDescription
Public propertyCollectionView Gets the underlying collection view.
Public propertyCount Gets the number of elements contained in the ICollectionT.
Public propertyIsFixedSize Gets a value indicating whether the IList has a fixed size.
Public propertyIsReadOnly Gets a value indicating whether the ICollectionT is read-only.
Public propertyItemGets or sets the element at the specified index.
Top
Methods
 NameDescription
Public methodContains Determines whether the ICollectionT contains a specific value.
Public methodIndexOf Determines the index of a specific item in the IListT.
Top
Events
 NameDescription
Public eventCollectionChanged Occurs when the collection changes.
Public eventPropertyChanged Occurs when a property value changes.
Top
Extension Methods
 NameDescription
Public Extension MethodAddRange Adds the elements of the specified collection to the end of the list.
(Defined by CollectionExtensions)
Public Extension MethodAddRangeT Adds the elements of the specified collection to the end of the list.
(Defined by CollectionExtensions)
Public Extension MethodAddRangeT Adds the elements of the specified collection to the end of the list.
(Defined by CollectionExtensions)
Public Extension MethodContainsAnyT Shortcut to test if any of the given items are contained in the specified object.
(Defined by CollectionExtensions)
Public Extension MethodContainsAnyT Shortcut to test if any of the given items are contained in the specified object.
(Defined by CollectionExtensions)
Public Extension MethodExceptNullItemsT Filters a sequence of values based on their nullness.
(Defined by NullableExtensions)
Public Extension MethodFindIndexT Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire IEnumerableT.
(Defined by CollectionExtensions)
Public Extension MethodForEachT Performs the specified action on each element of the collection.
(Defined by CollectionExtensions)
Public Extension MethodForEachT Performs the specified action on each element of the collection, providing also the index of the item.
(Defined by CollectionExtensions)
Public Extension MethodIndexOfT Searches for the specified object and returns the zero-based index of the first occurrence within all items.
(Defined by CollectionExtensions)
Public Extension MethodIndexOfT Searches for the specified object and returns the zero-based index of the first occurrence within all items.
(Defined by CollectionExtensions)
Public Extension MethodObservableCastTTarget Returns an observable collection of objects of type TTarget that mirrors the source collection.
(Defined by ObservableExtensions)
Public Extension MethodObservableSelectT, TTarget Projects each element of a sequence into a new form.
(Defined by ObservableExtensions)
Public Extension MethodObservableSelectManyT, TTarget Projects each element of a sequence to an IListT, flattens the resulting sequences into one sequence, and invokes a result selector function on each element therein. If the source is an observable collection, the resulting sequence will track the changes.
(Defined by ObservableExtensions)
Public Extension MethodObservableWhereT Returns an observable collection of objects of type T that contains all items of the source collection that pass the filter. See ObservableFilteredCollectionT for details.
(Defined by ObservableExtensions)
Public Extension MethodRemoveRange Removes a range of elements from the list.
(Defined by CollectionExtensions)
Public Extension MethodRemoveRangeT Removes a range of elements from the list.
(Defined by CollectionExtensions)
Public Extension MethodRemoveWhereT Removes the range of elements from the list that fulfill the condition.
(Defined by CollectionExtensions)
Public Extension MethodSafeCastT Performs a cast from object to T, avoiding possible null violations if T is a value type.
(Defined by ObjectExtensions)
Public Extension MethodSynchronizeWithT Synchronizes the items of the source list with the items of the target list. The order of the items is ignored.
(Defined by CollectionExtensions)
Public Extension MethodSynchronizeWithT Synchronizes the items of the source list with the items of the target list. The order of the items is ignored.
(Defined by CollectionExtensions)
Public Extension MethodToArrayT, TTarget Creates an array from a ICollectionT. This method is faster than using Enumerable.Select(selector).ToArray() because the size of the target array is known in advance.
(Defined by CollectionExtensions)
Public Extension MethodTryAddRangeT Adds the elements of the specified collection to the end of the list, but ignores all ArgumentException, e.g. when trying to add duplicate keys to a dictionary.
(Defined by CollectionExtensions)
Top
See Also