Free Support Forum - aspose.com

Add row and keep style


#1

Dear Friends!
How can I delete only cell content in word table, but keep format: for example alignment


#2

@levanq,

Please try using the following code:

Table tab = doc.FirstSection.Body.Tables[0];
Cell cell = tab.Rows[2].Cells[3];
cell.RemoveAllChildren();
cell.EnsureMinimum(); 

Hope, this helps.