Represents a strongly-typed collection that supports undo and redo.
The following tables list the members exposed by the UndoableCollection(T) type.
Name | Description | |
---|---|---|
Gets the number of items in the collection. |
||
Gets a value indicating whether access to the collection is synchronized (thread safe). |
||
Gets the item at the specified index. |
||
Gets an object that can be used to synchronize access to the collection. |
Name | Description | |
---|---|---|
Determines whether an element is in the collection. |
||
Copies the elements of this collection to the specified array starting at the specified index within the array. |
||
IEnumerator.GetEnumerator implementation. |
||
Searches for the specified item and returns the zero-based index of the first occurrence within the entire collection. |
Name | Description | |
---|---|---|
Raises the CollectionChanged event. |
||
Adds the specified item to the collection. If undo is enabled, the item is added through a command. Otherwise, the item is added directly. |
||
Clears the collection. If undo is enabled, the collection is cleared through a command. Otherwise, the collection is cleared directly. |
||
Moves the specified item to another position. If undo is enabled, the item is moved through a command. Otherwise, the item is moved directly. |
||
Removes the specified item to the collection. If undo is enabled, the item is removed through a command. Otherwise, the item is removed directly. |
||
Removes the specified item in the collection. If undo is enabled, the item is replaced through a command. Otherwise, the item is replaced directly. |
Name | Description | |
---|---|---|
Raised when the collection is changed. |