GetUsedRange
function GetUsedRange(): ApiRange
Description
Returns the ApiRange object that represents the used range on the specified worksheet.
Returns
ApiRange
Try It
var oWorksheet = Api.GetActiveSheet();
var oUsedRange = oWorksheet.GetUsedRange();
oUsedRange.SetFillColor(Api.CreateColorFromRGB(255, 213, 191));