How to remove a column from table

hi
i have a table like

Aspose.Words.Tables.Table table1 = (Aspose.Words.Tables.Table) doc.GetChild(NodeType.Table, 1, true);

from table1 how to remove a column

Hi
Ajeesh,

Thanks for the inquiry. Yes, you can achieve this by using Column class which is available in our documentation.
https://docs.aspose.com/words/net/working-with-columns-and-rows/

Code Snippet:

Document doc = new Document(MyDir + "Table.Document.doc");
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();

I hope, this will help. In case of any ambiguity, please let me know.