Returns the ApiRange object that represents the used range on the specified worksheet.
This method doesn't have any parameters.
builder.CreateFile("xlsx"); var oWorksheet = Api.GetActiveSheet(); var oUsedRange = oWorksheet.GetUsedRange(); oUsedRange.SetFillColor(Api.CreateColorFromRGB(255, 213, 191)); builder.SaveFile("xlsx", "GetUsedRange.xlsx"); builder.CloseFile();