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
Determine the type of a table row object in a PDF.
// How do I identify what type a table row is in a PDF?
// Find out which class a table row belongs to in a PDF.
const doc = Api.GetDocument();
const page = doc.GetPage(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);
page.AddObject(table);