Aspose.Words.Examples.CSharp.Programming_Documents.Working_With_Document.AddRemoveColumn.RemoveColumn C# (CSharp) Method

RemoveColumn() private static method

private static RemoveColumn ( Document doc ) : void
doc Document
return void
        private static void RemoveColumn(Document doc)
        {
            // ExStart:RemoveColumn
            // Get the second table in the document.
            Table table = (Table)doc.GetChild(NodeType.Table, 1, true);

            // Get the third column from the table and remove it.
            Column column = Column.FromIndex(table, 2);
            column.Remove();
            // ExEnd:RemoveColumn
            Console.WriteLine("\nThird column removed successfully.");
        }
        private static void InsertBlankColumn(Document doc)