Merging of cells of table in word document

I need to merge cells of a particular row of a table. How do I do that? I have attached a doc with table example.
Thanks in advance.

Hi

Thanks for your inquiry. You should use CellFormat. HorizontalMerge and CellFormat.VerticalMerge. Please see the following link to learn how to create table with merged cells.
https://reference.aspose.com/words/net/aspose.words.tables/cellmerge/
If you need to merge cells in the existing table, you can use code like the following:

// Open document
Document doc = new Document(@"Test088\in.doc");
// Get table from document
Table tab = doc.FirstSection.Body.Tables[0];
// Merge cells
tab.Rows[1].Cells[1].CellFormat.HorizontalMerge = CellMerge.First;
tab.Rows[1].Cells[2].CellFormat.HorizontalMerge = CellMerge.Previous;
tab.Rows[1].Cells[3].CellFormat.HorizontalMerge = CellMerge.Previous;
tab.Rows[1].Cells[4].CellFormat.HorizontalMerge = CellMerge.Previous;
// Save output document
doc.Save(@"Test088\out.doc");

Hope this helps.
Best regards.