GetCells
Returns a Range object that represents all the cells in the specified range or a specified cell.
Syntax
expression.GetCells(row, col);
expression
- A variable that represents a ApiRange class.
Parameters
Name | Required/Optional | Data type | Default | Description |
---|---|---|---|---|
row | Required | number | The row number or the cell number (if only row is defined). | |
col | Required | number | The column number. |
Returns
Example
This example shows how to get a Range object that represents all the cells in the specified range or a specified cell.
- Code
- Result
let worksheet = Api.GetActiveSheet();
let range = worksheet.GetRange("A1:C3");
range.GetCells(2, 1).SetFillColor(Api.CreateColorFromRGB(255, 213, 191));