Skip to main content

GetClassType

Returns the type of the ApiTableRow class.

Syntax

expression.GetClassType();

expression - A variable that represents a ApiTableRow class.

Parameters

This method doesn't have any parameters.

Returns

"tableRow"

Example

Retrieve the class type of a table row object.

// Create a table and access the first row to get its class type.

// Display the class type identifier in the slide content.

const presentation = Api.GetPresentation();
const slide = presentation.GetSlideByIndex(0);

const table = Api.CreateTable(2, 4);
const row = table.GetRow(0);
const cell = row.GetCell(0);
const content = cell.GetContent();
const paragraph = Api.CreateParagraph();
const classType = row.GetClassType();
paragraph.AddText("Class type: " + classType);
content.Push(paragraph);

slide.RemoveAllObjects();
slide.AddObject(table);