[]
Represents a worksheet.
getSelections():
Range
[]
Retrieves the selections in the current sheet.
Range
[]
The type Range is stored in an Array.
var selection = worksheet.getSelections();
getText(
row
,col
):string
Retrieves formatted text in the cell based on the desired row and column index.
number
The row index.
number
The column index.
string
Returns the formatted text of the cell.
var text = worksheet.getText(0, 0);
getValue(
row
,col
):any
Retrieves unformatted data from the specified cell based on the desired row and column index.
number
The row index.
number
The column index.
any
Object Returns the value of the cell.
var value = worksheet.getValue(0, 0);