Aspose.Words.Examples.CSharp.Programming_Documents.Working_with_Tables.MergedCells.CheckCellsMerged C# (CSharp) Method

CheckCellsMerged() public static method

public static CheckCellsMerged ( string dataDir ) : void
dataDir string
return void
        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