Get Started
Documentation

GetClassType

GetClassType() → { "tableCell" }

Get the type of this class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
"tableCell"

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 = oCell.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