TableEnsureMinimum Method

If the table has no rows, creates and appends one Row.

Namespace:  Aspose.Words.Tables
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void EnsureMinimum()
Examples
Shows how to ensure a table node is valid.
Document doc = new Document();

// Create a new table and add it to the document
Table table = new Table(doc);
doc.FirstSection.Body.AppendChild(table);

// Ensure the table is valid (has at least one row with one cell)
table.EnsureMinimum();
See Also