Search
Selection Methods
 


 Public Methods

  Name Description

add

Overloaded. Adds a cell or a range of cells to the selection.

addColumns

Overloaded. Adds a column or a range of columns to the selection.

addObject

Selects the specified object.

addRows

Overloaded. Adds a row or a range of rows to the collection.

addSelectionListener

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

change

Selects the specified object, deselects all other currently selected objects.

clear

Clears the selection.

clearObjects

Removes all interactive objects from the selection.

contains

Checks whether the selection contains the cell at the specified coordinates.

containsObject

Checks whether the specified object is contained in the selection.

getAllRanges

Gets an enumerable with all selected cell ranges.

getBottom

Gets the index of the bottommost column of the selected cell range.

getLeft

Gets the index of the leftmost column of the selected cell range.

getObjects

Gets a list with the selected objects.

getRange

Gets a CellRange object representing the selected range of cells, or null, if the selection is empty.

getRight

Gets the index of the rightmost column of the selected cell range.

getTop

Gets the index of the topmost column of the selected cell range.

inColumn

Checks whether the specified column is part of the selection.

inRow

Indicates whether the specified row is part of the selection.

isEmpty

Gets a value indicating whether the selection contains any cells.

removeObject

Removes the specified object from the selection.

removeSelectionListener

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

selectAll

Overloaded. Selects all cells in the worksheet.

selectColumns

Overloaded. Selects a column or a range of columns.

selectRows

Overloaded. Selects a row or a range of rows.

set

Overloaded. Sets the selection to a cell or a range of cells.

toggle

Toggles the selection state of the specified object.

 See Also