ItemCollection Methods
.NET Framework 4.5
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
The ItemCollection type exposes the following members.
| Name | Description | |
|---|---|---|
|
Add | Adds an item to the ItemCollection. |
|
CheckAccess | Determines whether the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
|
Clear | Clears the collection and releases the references on all items currently in the collection. |
|
ClearChangeLog | Obsolete. Clears any pending changes from the change log. (Inherited from CollectionView.) |
|
ClearPendingChanges | Clears unprocessed changed to the collection. (Inherited from CollectionView.) |
|
Contains | Returns a value that indicates whether the specified item is in this view. (Overrides CollectionView.Contains(Object).) |
|
CopyTo | Copies the elements of the collection to an array, starting at a particular array index. |
|
DeferRefresh | Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh. (Overrides CollectionView.DeferRefresh().) |
|
DetachFromSourceCollection | Removes the reference to the underlying collection from the CollectionView. (Inherited from CollectionView.) |
|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
|
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
|
GetEnumerator | Returns an object that you can use to enumerate the items in the view. (Inherited from CollectionView.) |
|
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
|
GetItemAt | Returns the item at the specified zero-based index in this view. (Overrides CollectionView.GetItemAt(Int32).) |
|
GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
IndexOf | Returns the index in this collection where the specified item is located. (Overrides CollectionView.IndexOf(Object).) |
|
Insert | Inserts an element into the collection at the specified index. |
|
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
|
MoveCurrentTo | Sets the specified item in the collection as the CurrentItem. (Overrides CollectionView.MoveCurrentTo(Object).) |
|
MoveCurrentToFirst | Sets the first item in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToFirst().) |
|
MoveCurrentToLast | Sets the last item in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToLast().) |
|
MoveCurrentToNext | Sets the item after the CurrentItem in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToNext().) |
|
MoveCurrentToPosition | Sets the item at the specified index to be the CurrentItem in the view. (Overrides CollectionView.MoveCurrentToPosition(Int32).) |
|
MoveCurrentToPrevious | Sets the item before the CurrentItem in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToPrevious().) |
|
OKToChangeCurrent | Returns a value that indicates whether the view can change which item is the CurrentItem. (Inherited from CollectionView.) |
|
OnAllowsCrossThreadChangesChanged | Occurs when the AllowsCrossThreadChanges property changes. (Inherited from CollectionView.) |
|
OnBeginChangeLogging | Obsolete. Called by the base class to notify the derived class that an INotifyCollectionChanged.CollectionChanged event has been posted to the message queue. (Inherited from CollectionView.) |
|
OnCollectionChanged(NotifyCollectionChangedEventArgs) | Raises the CollectionChanged event. (Inherited from CollectionView.) |
|
OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) | Raises the CollectionChanged event. (Inherited from CollectionView.) |
|
OnCurrentChanged | Raises the CurrentChanged event. (Inherited from CollectionView.) |
|
OnCurrentChanging() | Raises a CurrentChanging event that is not cancelable. (Inherited from CollectionView.) |
|
OnCurrentChanging(CurrentChangingEventArgs) | Raises the CurrentChanging event with the specified arguments. (Inherited from CollectionView.) |
|
OnPropertyChanged | Raises the PropertyChanged event using the specified arguments. (Inherited from CollectionView.) |
|
PassesFilter | Returns a value that indicates whether the specified item belongs to this view. (Overrides CollectionView.PassesFilter(Object).) |
|
ProcessCollectionChanged | When overridden in a derived class, processes a single change on the UI thread. (Inherited from CollectionView.) |
|
ProcessPendingChanges | Ensures that all pending changes to the collection have been committed. (Inherited from CollectionView.) |
|
Refresh | Re-creates the view. (Inherited from CollectionView.) |
|
RefreshOrDefer | Refreshes the view or specifies that the view needs to be refreshed when the defer cycle completes. (Inherited from CollectionView.) |
|
RefreshOverride | Re-creates the view. (Inherited from CollectionView.) |
|
Remove | Removes the specified item reference from the collection or view. |
|
RemoveAt | Removes the item at the specified index of the collection or view. |
|
SetCurrent(Object, Int32) | Sets the specified item and index as the values of the CurrentItem and CurrentPosition properties. (Inherited from CollectionView.) |
|
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. (Inherited from CollectionView.) |
|
ToString | Returns a string that represents the current object. (Inherited from Object.) |
|
VerifyAccess | Enforces that the calling thread has access to this DispatcherObject. (Inherited from DispatcherObject.) |
| Name | Description | |
|---|---|---|
|
AsParallel | Enables parallelization of a query. (Defined by ParallelEnumerable.) |
|
AsQueryable | Converts an IEnumerable to an IQueryable. (Defined by Queryable.) |
|
Cast<TResult> | Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.) |
|
OfType<TResult> | Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.) |
| Name | Description | |
|---|---|---|
|
IEditableCollectionView.AddNew | Adds a new item to the collection. |
|
IEditableCollectionView.CancelEdit | Ends the edit transaction and, if possible, restores the original value to the item. |
|
IEditableCollectionView.CancelNew | Ends the add transaction and discards the pending new item. |
|
IEditableCollectionView.CommitEdit | Ends the edit transaction and saves the pending changes. |
|
IEditableCollectionView.CommitNew | Ends the add transaction and saves the pending new item. |
|
IEditableCollectionView.EditItem | Begins an edit transaction of the specified item. |
|
IEditableCollectionView.Remove | Removes the specified item from the collection. |
|
IEditableCollectionView.RemoveAt | Removes the item at the specified position from the collection. |
|
IEditableCollectionViewAddNewItem.AddNewItem | Adds the specified object to the collection. |
|
IEnumerable.GetEnumerator | Returns an IEnumerator object that you can use to enumerate the items in the view. (Inherited from CollectionView.) |
|
IWeakEventListener.ReceiveWeakEvent | Receives events from the centralized event manager. |