GetCells
Returns a Range object that represents all the cells in the specified range or a specified cell.
Parameters:
Name |
Type |
Description |
row |
number
|
The row number or the cell number (if only row is defined). |
col |
number
|
The column number. |
Returns:
- Type
-
ApiRange
Example
Copy code
builder.CreateFile("xlsx");
var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A1:C3");
oRange.GetCells(2, 1).SetFillColor(Api.CreateColorFromRGB(255, 224, 204));
builder.SaveFile("xlsx", "GetCells.xlsx");
builder.CloseFile();
Resulting document