Get Started
Usage API

GetRows

GetRows(nRow) → { ApiRange }

Returns a Range object that represents the rows in the specified range.

Parameters:

Name Type Description
nRow number

The number of the row. *

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