Get Started
Usage API
More information

GetParentRow

GetParentRow() → { ApiTableRow | null }

Get the parent row of the cell.

Parameters:

This method doesn't have any parameters.

Returns:

Type
ApiTableRow | null

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oTableStyle = oDocument.CreateStyle("CustomTableStyle", "table");
oTableStyle.SetBasedOn(oDocument.GetStyle("Bordered - Accent 5"));
oTable = Api.CreateTable(3, 3);
oTable.SetWidth("percent", 100);
oTable.SetStyle(oTableStyle);
oDocument.Push(oTable);
oTable.GetCell(0, 0).GetContent().GetElement(0).AddText("Cell 1");
oParentRow = oTable.GetCell(0, 0).GetParentRow();
oParentRow.SetHeight("atLeast", 720);
builder.SaveFile("docx", "GetParentRow.docx");
builder.CloseFile();

Resulting document