Search
WorksheetCollection Members
Methods
 


Represents a specialized collection of Worksheet objects.

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

 Public Methods

  Name Description

add

Overloaded. Creates a new Worksheet object and adds it to the end of the collection.

addCollectionListener

Registers listener so that it will receive events from the collection. (Inherited from UndoableCollection.)

addNamedCollectionListener

Registers listener so that it will receive events from the collection. (Inherited from NamedCollection.)

clear

Clears all elements from the collection. If the collection is empty, the method has no effect.

contains

Determines whether an element is in the collection. (Inherited from UndoableCollection.)

contains

Determines whether an element with the specified name is in the collection. (Inherited from NamedCollection.)

get

Gets the item at the specified index. (Inherited from UndoableCollection.)

get

Gets the item with the specified name. If there is no item with the specified name, the indexer has no effect. (Inherited from NamedCollection.)

indexOf

Searches for the specified item and returns the zero-based index of the first occurrence within the entire collection. (Inherited from UndoableCollection.)

insert

Overloaded.  

iterator

  (Inherited from UndoableCollection.)

move

Moves the specified Worksheet object from its current position to the specified index. If the worksheet is not part of the collection, the method has no effect.

remove

Overloaded. Removes a Worksheet object from the collection.

removeAt

Removes the Worksheet object at the specified index.

removeCollectionListener

Unregisters listener so that it will no longer receive collection events. (Inherited from UndoableCollection.)

removeNamedCollectionListener

Unregisters listener so that it will no longer receive collection events. (Inherited from NamedCollection.)

size

Gets the number of items in the collection. (Inherited from UndoableCollection.)

 Protected Methods

  Name Description

getWorkbook

Gets a reference to the parent Workbook object. (Inherited from UndoableCollection.)

onCollectionChanged

  (Inherited from NamedCollection.)

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. (Inherited from UndoableCollection.)

trackClear

Clears the collection. If undo is enabled, the collection is cleared through a command. Otherwise, the collection is cleared directly. (Inherited from UndoableCollection.)

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. (Inherited from UndoableCollection.)

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. (Inherited from UndoableCollection.)

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. (Inherited from UndoableCollection.)

 See Also