CreateTable
function CreateTable(nCols: any = null, nRows: any = null): ApiTable
Description
Creates a table.
Parameters
- nCols
any
null Number of columns.
- nRows
any
null Number of rows.
Returns
ApiTable
Try It
var oPresentation = Api.GetPresentation();
var oTable = Api.CreateTable(2, 4);
var oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);