Get Started
Usage API
More information

CreateTable

CreateTable() → { ApiTable }

Create a table.

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiTable

Example

Copy code
builder.CreateFile("pptx");
oPresentation = Api.GetPresentation();
oTable = Api.CreateTable(2, 4);
oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);
builder.SaveFile("pptx", "CreateTable.pptx");
builder.CloseFile();

Resulting document