Get Started
Usage API

GetCells

GetCells() → { ApiRange }

Returns a ApiRange that represents all the cells on the worksheet (not just the cells that are currently in use).

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiRange

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oCells = oWorksheet.GetCells();
oCells.SetFillColor(Api.CreateColorFromRGB(255, 224, 204));
builder.SaveFile("xlsx", "GetCells.xlsx");
builder.CloseFile();

Resulting document