Document doc = new Document("文档路径"); NodeCollection allTables = doc.GetChildNodes(NodeType.Table, true); //获取文档中所有表格 Aspose.Words.Tables.Table tableTmp = allTables[0] as Aspose.Words.Tables.Table;//获取第1个表格 Aspose.Words.Tables.Cell c = tableTmp.Rows[0].Cells[0];//获取第一行第一个单元格 c.CellFormat.Shading.BackgroundPatternColor = System.Drawing.Color.Blue;//设置单元格背景色 tableTmp.Rows[0].Cells[0].Remove();//移除第一行第一个单元格 tableTmp.Rows[0].Cells.Insert(0, c); //将单元格c 插入第一行第一个单元格的位置