Get Started
Documentation

GetPrevious

GetPrevious() → { ApiTableRow | null }

Get the previous row.

Returns:

Type
ApiTableRow | null

Example

Copy code
builder.CreateFile("docx");
oDocument = Api.GetDocument();
oTable = Api.CreateTable(3, 3);
oRow = oTable.GetRow(1);
oRow.GetCell(1).GetContent().GetElement(0).AddText("Second row");
oRow.GetPrevious().GetCell(1).GetContent().GetElement(0).AddText("First row");
oDocument.Push(oTable);
builder.SaveFile("docx", "GetPrevious.docx");
builder.CloseFile();