Get Started
Usage API
More information

GetContent

GetContent() → { ApiDocumentContent }

Returns cell content.

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiDocumentContent

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();
oParagraph.AddText("This is a sample text in the cell.");
oContent.Push(oParagraph);
oSlide = oPresentation.GetSlideByIndex(0);
oSlide.RemoveAllObjects();
oSlide.AddObject(oTable);
builder.SaveFile("pptx", "GetContent.pptx");
builder.CloseFile();

Resulting document