SetBorders
function SetBorders(bordersIndex: BordersIndex = null, lineStyle: LineStyle = null, oColor: ApiColor = null): void
Description
Sets the border to the cell / cell range with the parameters specified.
Parameters
Specifies the cell border position.
Specifies the line style used to form the cell border.
The color object which specifies the color to be set to the cell border.
Returns
void
Try It
var oWorksheet = Api.GetActiveSheet();
oWorksheet.SetColumnWidth(0, 50);
oWorksheet.GetRange("A2").SetBorders("Bottom", "Thick", Api.CreateColorFromRGB(255, 111, 61));
oWorksheet.GetRange("A2").SetValue("This is a cell with a bottom border");