Get Started
Usage API

GetClassType

GetClassType() → { "table" }

Returns type of object

Parameters:

This method doesn't have any parameters.

Returns:

Type
"table"

Example

Copy code
builder.CreateFile("pptx");
oPresentation = Api.GetPresentation();
oTable = Api.CreateTable(2, 4);
oRow = oTable.GetRow(0);
oCell = oRow.GetCell(0);
oContent = oCell.GetContent();
oParagraph = Api.CreateParagraph();
oClassType = oTable.GetClassType();
oParagraph.AddText("Class type: " + oClassType);
oContent.Push(oParagraph);
oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);
builder.SaveFile("pptx", "GetClassType.pptx");
builder.CloseFile();

Resulting document