GetParentTable
Returns the parent table of the current row.
Syntax
expression.GetParentTable();
expression - A variable that represents an ApiTableRow class.
Parameters
This method doesn't have any parameters.
Returns
ApiTable | null
Example
Get the parent table of a row in a presentation.
// Useful for getting the table that contains the row.
// Get the parent table from a row and set the width of its first column.
const presentation = Api.GetPresentation();
const slide = presentation.GetSlideByIndex(0);
const table = Api.CreateTable(2, 3);
const row = table.GetRow(0);
const parentTable = row.GetParentTable();
parentTable.SetColumnWidth(0, 2160000);
slide.RemoveAllObjects();
slide.AddObject(table);