Get Started
Documentation

GetNext

GetNext() → { ApiTableRow | null }

Get the next row.

Returns:

Type
ApiTableRow | null

Example

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