TableRow row = table2.AddRow(); var cell = row.AddCell(); var par = cell.AddParagraph(); par.Text = "测试的"; cell.Paragraphs.Add(par); row.Cells.Add(cell); table2.Rows.Insert(0, row); table2.AddRow(false, 4); table2.ApplyHorizontalMerge(0, 0, 4);
TableRow row = table2.AddRow(); var cell = row.AddCell(); var par = cell.AddParagraph(); par.Text = "测试的"; cell.Paragraphs.Add(par); row.Cells.Add(cell); table2.Rows.Insert(0, row); table2.AddRow(false, 4); table2.ApplyHorizontalMerge(0, 0, 4);
来源:https://www.cnblogs.com/axu92312/p/11911895.html