CellWatchCollection

CellWatchCollection class

Represents the collection of cells on this worksheet being watched in the ‘watch window’.

class CellWatchCollection;

Constructors

NameDescription
constructor()Default Constructor.

Methods

MethodDescription
get(number)Gets and sets CellWatch by index.
add(number, number)Adds CellWatch with row and column.
add(string)Adds CellWatch with the name the of cell.
getCount()Gets the number of elements contained in.

constructor()

Default Constructor.

constructor();

get(number)

Gets and sets CellWatch by index.

get(index: number) : CellWatch;

Parameters:

ParameterTypeDescription
indexnumberThe index.

Returns

CellWatch

add(number, number)

Adds CellWatch with row and column.

add(row: number, column: number) : number;

Parameters:

ParameterTypeDescription
rownumberThe row index.
columnnumberThe column index.

Returns

Returns the position of this item in the collection.

add(string)

Adds CellWatch with the name the of cell.

add(cellName: string) : number;

Parameters:

ParameterTypeDescription
cellNamestringThe name of the cell.

getCount()

Gets the number of elements contained in.

getCount() : number;