End

function End(direction: Direction = null): ApiRange

Description

Returns a Range object that represents the end in the specified direction in the specified range.

Parameters

directionDirectiondefault: null

The direction of end in the specified range. *

Returns

ApiRange

Try It

var oWorksheet = Api.GetActiveSheet();
var oRange = oWorksheet.GetRange("C4:D5");
oRange.End("xlToLeft").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).