Get Started
Usage API

RemoveColumn

RemoveColumn(oCell) → { boolean }

Remove the table column with a specified cell.

Parameters:

Name Type Description
oCell ApiTableCell

Returns:

Type
boolean

Example

Copy code
builder.CreateFile("pptx");
oPresentation = Api.GetPresentation();
oTable = Api.CreateTable(2, 4);
oRow = oTable.GetRow(0);
oCell = oRow.GetCell(1);
oTable.RemoveColumn(oCell);
oCell = oRow.GetCell(0);
oContent = oCell.GetContent();
oParagraph = Api.CreateParagraph();
oParagraph.AddText("The second column was removed.");
oContent.Push(oParagraph);
oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);
builder.SaveFile("pptx", "RemoveColumn.pptx");
builder.CloseFile();

Resulting document