Get Started
Usage API
More information

End

End(direction) → { ApiRange }

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

Parameters:

Name Type Description
direction Direction

The direction of end in the specified range. *

Returns:

Type
ApiRange

Example

Copy code
builder.CreateFile("xlsx");
oWorksheet = Api.GetActiveSheet();
oRange = oWorksheet.GetRange("C4:D5");
oRange.End("xlToLeft").SetFillColor(Api.CreateColorFromRGB(255, 224, 204));
builder.SaveFile("xlsx", "End.xlsx");
builder.CloseFile();

Resulting document