GetCols

function GetCols(nCol: number = null): ApiRange | "null"

Description

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

Parameters

nColnumberdefault: null

The column number. *

Returns

ApiRange | "null"

Try It

var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("A1:C3");
oRange.GetCols(2).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).