TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

SetCellBorderLeft

SetCellBorderLeft(fSize, oApiFill)

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

Parameters:

Name Type Description
fSize mm

The width of the current border.

oApiFill ApiFill

The color or pattern used to fill the current border.

Returns:

This method doesn't return any data.

Example

Copy code
builder.CreateFile("pptx");
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);
builder.SaveFile("pptx", "SetCellBorderLeft.pptx");
builder.CloseFile();

Resulting document