CollectionView Members

Represents a view for grouping, sorting, filtering, and navigating a data collection.

The CollectionView type exposes the following members.

  NameDescription
Public method CollectionView Initializes a new instance of the CollectionView class that represents a view of the specified collection.
Top

  NameDescription
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Protected method ClearChangeLog Clears any pending changes from the change log.
Public method Contains Returns a value that indicates whether the specified item belongs to the view.
Public method DeferRefresh Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetEnumerator Returns an object that you can use to enumerate the items in the view.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetItemAt Retrieves the item at the specified zero-based index in the view.
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method IndexOf Returns the index at which the specified item is located.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveCurrentTo Sets the specified item to be the CurrentItem in the view.
Public method MoveCurrentToFirst Sets the first item in the view as the CurrentItem.
Public method MoveCurrentToLast Sets the last item in the view as the CurrentItem.
Public method MoveCurrentToNext Sets the item after the CurrentItem in the view as the CurrentItem.
Public method MoveCurrentToPosition Sets the item at the specified index to be the CurrentItem in the view.
Public method MoveCurrentToPrevious Sets the item before the CurrentItem in the view as the CurrentItem.
Protected method OKToChangeCurrent Returns a value that indicates whether the view can change which item is the CurrentItem.
Protected method OnBeginChangeLogging Called by the base class to notify the derived class that an INotifyCollectionChanged.CollectionChanged event has been posted to the message queue.
Protected method OnCollectionChanged Overloaded. Raises the CollectionChanged event.
Protected method OnCurrentChanged Raises the CurrentChanged event.
Protected method OnCurrentChanging Overloaded. Raises the CurrentChanging event.
Protected method OnPropertyChanged Raises the PropertyChanged event using the specified arguments.
Public method PassesFilter Returns a value that indicates whether the specified item in the underlying collection belongs to the view.
Protected method ProcessCollectionChanged When overridden in a derived class, processes a single change on the UI thread.
Public method Refresh Re-creates the view.
Protected method RefreshOrDefer Refreshes the view or specifies that the view needs to be refreshed when the defer cycle completes.
Protected method RefreshOverride Re-creates the view.
Protected method SetCurrent Overloaded. Sets the current item of the CollectionView.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method VerifyAccess Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Top

  NameDescription
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast Converts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top

  NameDescription
Public property CanFilter Gets a value that indicates whether the view supports filtering.
Public property CanGroup Gets a value that indicates whether the view supports grouping.
Public property CanSort Gets a value that indicates whether the view supports sorting.
Public property Comparer Returns an object that you can use to compare items in the view.
Public property Count Gets the number of records in the view.
Public property Culture Gets or sets the culture information to use during sorting.
Public property CurrentItem Gets the current item in the view.
Public property CurrentPosition Gets the ordinal position of the CurrentItem within the (optionally sorted and filtered) view.
Public property Dispatcher Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public property Filter Gets or sets a method used to determine if an item is suitable for inclusion in the view.
Public property GroupDescriptions Gets a collection of GroupDescription objects that describes how the items in the collection are grouped in the view.
Public property Groups Gets a collection of the top-level groups that is constructed based on the GroupDescriptions property.
Public property IsCurrentAfterLast Gets a value that indicates whether the CurrentItem of the view is beyond the end of the collection.
Public property IsCurrentBeforeFirst Gets a value that indicates whether the CurrentItem of the view is before the beginning of the collection.
Protected property IsCurrentInSync Gets a value that indicates whether the CurrentItem is at the CurrentPosition.
Protected property IsDynamic Gets a value that indicates whether the underlying collection provides change notifications.
Public property IsEmpty Gets a value that indicates whether the resulting (filtered) view is empty.
Protected property IsRefreshDeferred Gets a value that indicates whether there is an outstanding DeferRefresh in use.
Public property NeedsRefresh Gets a value that indicates whether the view needs to be refreshed.
Public property Static member NewItemPlaceholder Gets the object that is in the collection to represent a new item.
Public property SortDescriptions Gets a collection of SortDescription structures that describes how the items in the collection are sorted in the view.
Public property SourceCollection Returns the underlying unfiltered collection.
Protected property UpdatedOutsideDispatcher Gets a value that indicates whether it has been necessary to update the change log because a CollectionChanged notification has been received on a different thread without first entering the user interface (UI) thread dispatcher.
Top

  NameDescription
Protected event CollectionChanged Occurs when the view has changed.
Public event CurrentChanged Occurs after the CurrentItem has changed.
Public event CurrentChanging Occurs when the CurrentItem is changing.
Protected event PropertyChanged Occurs when a property value has changed.
Top

  NameDescription
Explicit interface implemetation Private event INotifyCollectionChanged.CollectionChanged Occurs when the view has changed.
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an IEnumerator object that you can use to enumerate the items in the view.
Explicit interface implemetation Private event INotifyPropertyChanged.PropertyChanged Occurs when a property value changes.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2015 Microsoft