Skip to main content

GetRows

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

Syntax

expression.GetRows(value);

expression - A variable that represents a ApiWorksheet class.

Parameters

NameRequired/OptionalData typeDefaultDescription
valueRequiredstringnumber

Returns

ApiRange | null

Example

This example shows how to get the ApiRange object that represents all the cells on the rows range.

var oWorksheet = Api.GetActiveSheet();
oWorksheet.GetRows("1:4").SetFillColor(Api.CreateColorFromRGB(255, 213, 191));