TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

GetClassType

GetClassType() → { "tableRow" }

Returns the type of the ApiTableRow class.

Parameters:

This method doesn't have any parameters.

Returns:

Type
"tableRow"

Example

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

Resulting document