SetCellBorderLeft

function SetCellBorderLeft(fSize: mm = null, oApiFill: ApiFill = null): void

Description

Sets the border which shall be displayed at the left of the current table cell.

Parameters

fSizemmdefault: null

The width of the current border.

oApiFillApiFilldefault: null

The color or pattern used to fill the current border.

Returns

void

Try It

var oPresentation = Api.GetPresentation();
var oTable = Api.CreateTable(2, 4);
var oRow = oTable.GetRow(0);
var oCell = oRow.GetCell(0);
var oFill = Api.CreateSolidFill(Api.CreateRGBColor(51, 51, 51));
oCell.SetCellBorderLeft(2, oFill);
var oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);

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).