Get Started
Documentation

GetRows

GetRows(value) → { ApiRange }

Returns a ApiRange that represents all the cells on the rows range.

Parameters:

Name Type Description
value string | number

Returns:

Type
ApiRange

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oRange = oWorksheet.GetRange("A1:A3");
oRows = oRange.GetRows(1, 2);
oRows.SetFillColor(Api.CreateColorFromRGB(255, 224, 204));
builder.SaveFile("xlsx", "GetRows.xlsx");
builder.CloseFile();

Resulting document