GetCols

function GetCols(sRange: string = null): ApiRange

Description

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

Parameters

sRangestringdefault: null

Specifies the columns range in the string format.

Returns

ApiRange

Try It

var oWorksheet = Api.GetActiveSheet();
var oCols = oWorksheet.GetCols("A1:C1");
oCols.SetFillColor(Api.CreateColorFromRGB(255, 213, 191));

Get Help

  • If you have any questions about ONLYOFFICE Docs, try the FAQ section first.
  • You can request a feature or report a bug by posting an issue on GitHub.
  • You can also ask our developers on ONLYOFFICE forum (registration required).