Search
UndoableCollection(T) Members
Constructors Methods
 


Represents a strongly-typed collection that supports undo and redo.

The following tables list the members exposed by the UndoableCollection(T) type.

 Protected Constructors

  Name Description

UndoableCollection

Initializes a new instance of the UndoableCollection class.

 Public Methods

  Name Description

addCollectionListener

Registers listener so that it will receive events from the collection.

contains

Determines whether an element is in the collection.

get

Gets the item at the specified index.

indexOf

Searches for the specified item and returns the zero-based index of the first occurrence within the entire collection.

iterator

 

removeCollectionListener

Unregisters listener so that it will no longer receive collection events.

size

Gets the number of items in the collection.

 Protected Methods

  Name Description

getWorkbook

Gets a reference to the parent Workbook object.

onCollectionChanged

Raises the CollectionListener.collectionChanged event.

trackAdd

Adds the specified item to the collection. If undo is enabled, the item is added through a command. Otherwise, the item is added directly.

trackClear

Clears the collection. If undo is enabled, the collection is cleared through a command. Otherwise, the collection is cleared directly.

trackMove

Moves the specified item to another position. If undo is enabled, the item is moved through a command. Otherwise, the item is moved directly.

trackRemove

Removes the specified item to the collection. If undo is enabled, the item is removed through a command. Otherwise, the item is removed directly.

trackReplace

Removes the specified item in the collection. If undo is enabled, the item is replaced through a command. Otherwise, the item is replaced directly.

 See Also