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 ItemCollection type exposes the following members.

  NameDescription
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.
Protected method ClearChangeLog Clears any pending changes from the change log. (Inherited from CollectionView.)
Public method Contains Returns a value that indicates whether the specified item is in this view. (Overrides CollectionView.Contains(Object).)
Public method CopyTo Copies the elements of the collection to an array, starting at a particular array index.
Public method DeferRefresh Enters a defer cycle that you can use to merge changes to the view and delay automatic refresh. (Overrides CollectionView.DeferRefresh().)
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. (Inherited from CollectionView.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetItemAt Returns the item at the specified zero-based index in this view. (Overrides CollectionView.GetItemAt(Int32).)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method IndexOf Returns the index in this collection where the specified item is located. (Overrides CollectionView.IndexOf(Object).)
Public method Insert Inserts an element into the collection at the specified index.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveCurrentTo Sets the specified item in the collection as the CurrentItem. (Overrides CollectionView.MoveCurrentTo(Object).)
Public method MoveCurrentToFirst Sets the first item in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToFirst().)
Public method MoveCurrentToLast Sets the last item in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToLast().)
Public method MoveCurrentToNext Sets the item after the CurrentItem in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToNext().)
Public method MoveCurrentToPosition Sets the item at the specified index to be the CurrentItem in the view. (Overrides CollectionView.MoveCurrentToPosition(Int32).)
Public method MoveCurrentToPrevious Sets the item before the CurrentItem in the view as the CurrentItem. (Overrides CollectionView.MoveCurrentToPrevious().)
Protected method OKToChangeCurrent Returns a value that indicates whether the view can change which item is the CurrentItem. (Inherited from CollectionView.)
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. (Inherited from CollectionView.)
Protected method OnCollectionChanged Overloaded. Raises the CollectionChanged event.
Protected method OnCurrentChanged Raises the CurrentChanged event. (Inherited from CollectionView.)
Protected method OnCurrentChanging Overloaded. Raises the CurrentChanging event.
Protected method OnPropertyChanged Raises the PropertyChanged event using the specified arguments. (Inherited from CollectionView.)
Public method PassesFilter Returns a value that indicates whether the specified item belongs to this view. (Overrides CollectionView.PassesFilter(Object).)
Protected method ProcessCollectionChanged When overridden in a derived class, processes a single change on the UI thread. (Inherited from CollectionView.)
Public method Refresh Re-creates the view. (Inherited from CollectionView.)
Protected method RefreshOrDefer Refreshes the view or specifies that the view needs to be refreshed when the defer cycle completes. (Inherited from CollectionView.)
Protected method RefreshOverride Re-creates 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.
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 this collection view supports filtering. (Overrides CollectionView.CanFilter.)
Public property CanGroup Gets a value that indicates whether this collection view supports grouping. (Overrides CollectionView.CanGroup.)
Public property CanSort Gets a value that indicates whether this collection view supports sorting. (Overrides CollectionView.CanSort.)
Public property Comparer Returns an object that you can use to compare items in the view. (Inherited from CollectionView.)
Public property Count Gets the number of records in the collection. (Overrides CollectionView.Count.)
Public property Culture Gets or sets the culture information to use during sorting. (Inherited from CollectionView.)
Public property CurrentItem Gets the current item in the view. (Overrides CollectionView.CurrentItem.)
Public property CurrentPosition Gets the ordinal position of the current item within the view. (Overrides CollectionView.CurrentPosition.)
Public property Dispatcher Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)
Public property Filter Gets or sets a callback used to determine if an item is suitable for inclusion in the view. (Overrides CollectionView.Filter.)
Public property GroupDescriptions Gets a collection of GroupDescription objects that defines how to group the items. (Overrides CollectionView.GroupDescriptions.)
Public property Groups Gets the top-level groups that are constructed according to the GroupDescriptions. (Overrides CollectionView.Groups.)
Public property IsCurrentAfterLast Gets a value that indicates whether the current item of the view is beyond the end of the collection. (Overrides CollectionView.IsCurrentAfterLast.)
Public property IsCurrentBeforeFirst Gets a value that indicates whether the current item of the view is beyond the beginning of the collection. (Overrides CollectionView.IsCurrentBeforeFirst.)
Protected property IsCurrentInSync Gets a value that indicates whether the CurrentItem is at the CurrentPosition. (Inherited from CollectionView.)
Protected property IsDynamic Gets a value that indicates whether the underlying collection provides change notifications. (Inherited from CollectionView.)
Public property IsEmpty Gets a value that indicates whether the resulting (filtered) view is empty. (Overrides CollectionView.IsEmpty.)
Protected property IsRefreshDeferred Gets a value that indicates whether there is an outstanding DeferRefresh in use. (Inherited from CollectionView.)
Public property Item Gets or sets the item at the given zero-based index.
Public property NeedsRefresh Gets a value that indicates whether the collection needs to be refreshed. (Overrides CollectionView.NeedsRefresh.)
Public property SortDescriptions Gets a collection of SortDescription objects that describe how the items in the collection are sorted in the view. (Overrides CollectionView.SortDescriptions.)
Public property SourceCollection Gets the unsorted and unfiltered collection that underlies this collection view. (Overrides CollectionView.SourceCollection.)
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. (Inherited from CollectionView.)
Top
  NameDescription
Protected event CollectionChanged Occurs when the view has changed. (Inherited from CollectionView.)
Public event CurrentChanged Occurs after the CurrentItem has changed. (Inherited from CollectionView.)
Public event CurrentChanging Occurs when the CurrentItem is changing. (Inherited from CollectionView.)
Protected event PropertyChanged Occurs when a property value has changed. (Inherited from CollectionView.)
Top
  NameDescription
Explicit interface implemetation Private method IEditableCollectionView.AddNew This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IEditableCollectionView.CanAddNew This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IEditableCollectionView.CanCancelEdit This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IEditableCollectionView.CancelEdit This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IEditableCollectionView.CancelNew This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IEditableCollectionView.CanRemove This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private event INotifyCollectionChanged.CollectionChanged Occurs when the view has changed. (Inherited from CollectionView.)
Explicit interface implemetation Private method IEditableCollectionView.CommitEdit This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IEditableCollectionView.CommitNew This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IEditableCollectionView.CurrentAddItem This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IEditableCollectionView.CurrentEditItem This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IEditableCollectionView.EditItem This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an IEnumerator object that you can use to enumerate the items in the view. (Inherited from CollectionView.)
Explicit interface implemetation Private property IEditableCollectionView.IsAddingNew This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IEditableCollectionView.IsEditingItem This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IList.IsFixedSize This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IList.IsReadOnly This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property ICollection.IsSynchronized This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IItemProperties.ItemProperties This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property IEditableCollectionView.NewItemPlaceholderPosition This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private event INotifyPropertyChanged.PropertyChanged Occurs when a property value changes. (Inherited from CollectionView.)
Explicit interface implemetation Private method IWeakEventListener.ReceiveWeakEvent This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IEditableCollectionView.Remove This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private method IEditableCollectionView.RemoveAt This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Explicit interface implemetation Private property ICollection.SyncRoot 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.