共用方式為


BulkObservableCollection<T> Class

Definition

Represents an ObservableCollection that allows the AddRange operation.

generic <typename T>
public ref class BulkObservableCollection : System::Collections::ObjectModel::ObservableCollection<T>
public class BulkObservableCollection<T> : System.Collections.ObjectModel.ObservableCollection<T>
type BulkObservableCollection<'T> = class
    inherit ObservableCollection<'T>
Public Class BulkObservableCollection(Of T)
Inherits ObservableCollection(Of T)

Type Parameters

T

The type of the collection.

Inheritance
BulkObservableCollection<T>

Constructors

BulkObservableCollection<T>()

Initializes a new instance of a BulkObservableCollection<T>.

Methods

AddRange(IEnumerable<T>)

Adds a list of items to the ObservableCollection without firing an event for each item.

AsReadOnly()

Gets a read-only version of the collection.

BeginBulkOperation()

Suspends change events on the collection in order to perform a bulk change operation.

ClearItems()

Removes all items from the collection.

EndBulkOperation()

Restores change events on the collection after a bulk change operation has been completed.

InsertItem(Int32, T)

Inserts an item at the specified index.

MoveItem(Int32, Int32)

Moves the item from one location to another.

OnCollectionChanged(NotifyCollectionChangedEventArgs)

Occurs when the collection has changed.

OnPropertyChanged(PropertyChangedEventArgs)

Occurs when a property on the collection has changed.

RemoveItem(Int32)

Removes an item from the collection at the specified location.

SetItem(Int32, T)

Replaces the item at the specified index.

Applies to