Get Started
Usage API
More information

GetRows

GetRows(value) → { ApiRange }

Return an ApiRange that represents all the cells on the rows range.

Parameters:

Name Type Description
value string | number

Specify the rows range in the string or number format.

Returns:

Type
ApiRange

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRows("1:4").SetFillColor(Api.CreateColorFromRGB(255, 224, 204));
builder.SaveFile("xlsx", "GetRows.xlsx");
builder.CloseFile();

Resulting document