public static void CheckCellsMerged(string dataDir)
{
// ExStart:CheckCellsMerged
Document doc = new Document(dataDir + "Table.MergedCells.doc");
// Retrieve the first table in the document.
Table table = (Table)doc.GetChild(NodeType.Table, 0, true);
foreach (Row row in table.Rows)
{
foreach (Cell cell in row.Cells)
{
Console.WriteLine(PrintCellMergeType(cell));
}
}
// ExEnd:CheckCellsMerged
}
// ExStart:PrintCellMergeType