ICollectionView Interface

 

Enables collections to have the functionalities of current record management, custom sorting, filtering, and grouping.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

public interface ICollectionView : IEnumerable, INotifyCollectionChanged

NameDescription
System_CAPS_pubpropertyCanFilter

Gets a value that indicates whether this view supports filtering via the Filter property.

System_CAPS_pubpropertyCanGroup

Gets a value that indicates whether this view supports grouping via the GroupDescriptions property.

System_CAPS_pubpropertyCanSort

Gets a value that indicates whether this view supports sorting via the SortDescriptions property.

System_CAPS_pubpropertyCulture

Gets or sets the cultural info for any operations of the view that may differ by culture, such as sorting.

System_CAPS_pubpropertyCurrentItem

Gets the current item in the view.

System_CAPS_pubpropertyCurrentPosition

Gets the ordinal position of the CurrentItem within the view.

System_CAPS_pubpropertyFilter

Gets or sets a callback used to determine if an item is suitable for inclusion in the view.

System_CAPS_pubpropertyGroupDescriptions

Gets a collection of GroupDescription objects that describe how the items in the collection are grouped in the view.

System_CAPS_pubpropertyGroups

Gets the top-level groups.

System_CAPS_pubpropertyIsCurrentAfterLast

Gets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.

System_CAPS_pubpropertyIsCurrentBeforeFirst

Gets a value that indicates whether the CurrentItem of the view is beyond the beginning of the collection.

System_CAPS_pubpropertyIsEmpty

Returns a value that indicates whether the resulting view is empty.

System_CAPS_pubpropertySortDescriptions

Gets a collection of SortDescription objects that describe how the items in the collection are sorted in the view.

System_CAPS_pubpropertySourceCollection

Returns the underlying collection.

NameDescription
System_CAPS_pubmethodContains(Object)

Returns a value that indicates whether a given item belongs to this collection view.

System_CAPS_pubmethodDeferRefresh()

Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates through a collection.(Inherited from IEnumerable.)

System_CAPS_pubmethodMoveCurrentTo(Object)

Sets the specified item to be the CurrentItem in the view.

System_CAPS_pubmethodMoveCurrentToFirst()

Sets the first item in the view as the CurrentItem.

System_CAPS_pubmethodMoveCurrentToLast()

Sets the last item in the view as the CurrentItem.

System_CAPS_pubmethodMoveCurrentToNext()

Sets the item after the CurrentItem in the view as the CurrentItem.

System_CAPS_pubmethodMoveCurrentToPosition(Int32)

Sets the item at the specified index to be the CurrentItem in the view.

System_CAPS_pubmethodMoveCurrentToPrevious()

Sets the item before the CurrentItem in the view as the CurrentItem.

System_CAPS_pubmethodRefresh()

Recreates the view.

NameDescription
System_CAPS_pubeventCollectionChanged

Occurs when the collection changes.(Inherited from INotifyCollectionChanged.)

System_CAPS_pubeventCurrentChanged

When implementing this interface, raise this event after the current item has been changed.

System_CAPS_pubeventCurrentChanging

When implementing this interface, raise this event before changing the current item. Event handler can cancel this event.

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

The interface is implemented by the CollectionView class, which is the base class for BindingListCollectionView, ListCollectionView, and ItemCollection.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: