public void EnsureCellMinimum()
{
//ExStart
//ExFor:Cell.EnsureMinimum
//ExSummary:Shows how to ensure a cell node is valid.
Document doc = new Document(MyDir + "Table.Document.doc");
// Gets the first cell in the document.
Cell cell = (Cell)doc.GetChild(NodeType.Cell, 0, true);
// Ensure the cell is valid (the last child is a paragraph).
cell.EnsureMinimum();
//ExEnd
}