This topic has not yet been rated - Rate this topic

CollectionView Methods

The CollectionView type exposes the following members.

  Name Description
Public method CheckAccess Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.)
Protected method ClearChangeLog Obsolete. Clears any pending changes from the change log.
Protected method ClearPendingChanges Clears unprocessed changed to the collection.
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 DetachFromSourceCollection Removes the reference to the underlying collection from the CollectionView.
Public method Equals(Object) 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 the default hash function. (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 OnAllowsCrossThreadChangesChanged Occurs when the AllowsCrossThreadChanges property changes.
Protected method OnBeginChangeLogging Obsolete. 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(NotifyCollectionChangedEventArgs) Raises the CollectionChanged event.
Protected method OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) Raises the CollectionChanged event.
Protected method OnCurrentChanged Raises the CurrentChanged event.
Protected method OnCurrentChanging() Raises a CurrentChanging event that is not cancelable.
Protected method OnCurrentChanging(CurrentChangingEventArgs) Raises the CurrentChanging event with the specified arguments.
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.
Protected method ProcessPendingChanges Ensures that all pending changes to the collection have been committed.
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(Object, Int32) Sets the specified item and index as the values of the CurrentItem and CurrentPosition properties.
Protected method SetCurrent(Object, Int32, Int32) Sets the specified item and index as the values of the CurrentItem and CurrentPosition properties. This method can be called from a constructor of a derived class.
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
  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  Name Description
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an IEnumerator object that you can use to enumerate the items in the view.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.