Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ItemCollection Members

Holds the list of items that constitute the content of an ItemsControl.

The following tables list the members exposed by the ItemCollection type.

  Name Description
Public property CanFilter Overridden. Gets a value that indicates whether this collection view supports filtering.
Public property CanGroup Overridden. Gets a value that indicates whether this collection view supports grouping.
Public property CanSort Overridden. Gets a value that indicates whether this collection view supports sorting.
Public property Comparer  Returns an object that you can use to compare items in this view.(inherited from CollectionView)
Public property Count Overridden. Gets the number of records in the collection.
Public property Culture  Gets or sets the culture to use during sorting.(inherited from CollectionView)
Public property CurrentItem Overridden. Gets the current item in the view.
Public property CurrentPosition Overridden. Gets the ordinal position of the current item within the view.
Public property Dispatcher  Gets the Dispatcher this DispatcherObject is associated with. (inherited from DispatcherObject)
Public property Filter Overridden. Gets or sets a callback used to determine if an item is suitable for inclusion in the view.
Public property GroupDescriptions Overridden. Gets a collection of GroupDescription objects that defines how to group the items.
Public property Groups Overridden. Gets the top-level groups that are constructed according to the GroupDescriptions.
Public property IsCurrentAfterLast Overridden. Gets a value that indicates whether the current item of the view is beyond the end of the collection.
Public property IsCurrentBeforeFirst Overridden. Gets a value that indicates whether the current item of the view is beyond the beginning of the collection.
Public property IsEmpty Overridden. Gets a value that indicates whether the resulting (filtered) view is empty.
Public property Item Gets or sets the item at the given zero-based index.
Public property NeedsRefresh Overridden. Gets a value that indicates whether the collection needs to be refreshed.
Public property SortDescriptions Overridden. Gets a collection of SortDescription objects that describe how the items in the collection are sorted in the view.
Public property SourceCollection Overridden. Gets the unsorted and unfiltered collection that underlies this collection view.
Top
(see also Protected Methods )
  Name Description
Public method Add Adds an item to the ItemCollection.
Public method CheckAccess  Determines whether the calling thread has access to this DispatcherObject. (inherited from DispatcherObject)
Public method Clear Clears the collection and releases the references on all items currently in the collection.
Public method Contains Overridden. Returns a value that indicates whether the specified item is in this view.
Public method CopyTo Copies the elements of the collection to an array, starting at a particular array index.
Public method DeferRefresh Overridden. Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh.
Public method Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method GetItemAt Overridden. Returns the item at the specified zero-based index in this view.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method IndexOf Overridden. Returns the index in this collection where the specified item is located.
Public method Insert Inserts an element into the collection at the specified index.
Public method MoveCurrentTo Overridden. Sets the specified item in the collection as the CurrentItem.
Public method MoveCurrentToFirst Overridden. Sets the first item in the view as the CurrentItem.
Public method MoveCurrentToLast Overridden. Sets the last item in the view as the CurrentItem.
Public method MoveCurrentToNext Overridden. Sets the item after the CurrentItem in the view as the CurrentItem.
Public method MoveCurrentToPosition Overridden. Sets the item at the specified index to be the CurrentItem in the view.
Public method MoveCurrentToPrevious Overridden. Sets the item before the CurrentItem in the view as the CurrentItem.
Public method PassesFilter Overridden. Returns a value that indicates whether the specified item belongs to this view.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Refresh  Recreates the view. (inherited from CollectionView)
Public method Remove Removes the specified item reference from the collection or view.
Public method RemoveAt Removes the item at the specified index of the collection or view.
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
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Top
  Name Description
Public event CurrentChanged  Occurs after the CurrentItem has been changed.(inherited from CollectionView)
Public event CurrentChanging  Occurs when the currency is changing.(inherited from CollectionView)
Top
  Name Description
Explicit interface implementation Method System.Windows.IWeakEventListener.ReceiveWeakEvent This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Property System.Collections.ICollection.IsSynchronized This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Property System.Collections.ICollection.SyncRoot This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Property System.Collections.IList.IsFixedSize This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implementation Property System.Collections.IList.IsReadOnly This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.