How to Insert Row in Document- Sample is Little Confusion

Hi.
Please let me know.

Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
builder.startTable();
// Insert a cell
builder.insertCell();
builder.getCellFormat().setVerticalAlignment(CellVerticalAlignment.CENTER);
builder.writeln("This is row 1 cell 1");
// Insert a cell
builder.insertCell();
builder.writeln("This is row 1 cell 2");
builder.endRow();

where is Aspose.Words inserting Row , here saying builder.endRow();
Sunil

Hi
Thanks for your inquiry. The row is inserted automatically when you insert first Cell. EndRow() tells that the next inserted cell will start the next row.
Best regards.