GetNext
Returns the next cell if exists.
Syntax
expression.GetNext();
expression - A variable that represents an ApiTableCell class.
Parameters
This method doesn't have any parameters.
Returns
ApiTableCell | null
Example
Get the next cell in a table row in a PDF.
// Access the cell that follows the current one in a row in a PDF.
// Add text to the first cell and to the next one in a PDF.
const doc = Api.GetDocument();
const page = doc.GetPage(0);
const table = Api.CreateTable(3, 3);
const cell = table.GetRow(0).GetCell(0);
const para = Api.CreateParagraph();
para.AddText('Cell 1');
cell.GetContent().Push(para);
const nextCell = cell.GetNext();
const para2 = Api.CreateParagraph();
para2.AddText('Cell 2');
nextCell.GetContent().Push(para2);
page.AddObject(table);