Aspose.Words.Tables.Table table = builder.StartTable(); builder.InsertCell(); builder.Write("表头1");
builder.InsertCell();
builder.Write("表头2");
builder.EndRow();
builder.InsertCell();
builder.Write("内容1");
builder.InsertCell(); builder.Write("内容2");
builder.EndRow();
//表格居中对齐
table.Alignment = Aspose.Words.Tables.TableAlignment.Center;
builder.EndTable();