documentBuilderObjObj.InsertCell();
// 添加一个单元格
documentBuilderObj.CellFormat.Width = xxxxx;
documentBuilderObj.CellFormat.Borders.Style = Style.Single;
documentBuilderObj.CellFormat.VerticalMerge = Aspose.Words.Tables.CellMerge.None;
documentBuilderObj.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
//垂直居中对齐
/**
* 去掉默认首行缩进2个字符的问题 20180425 江节胜 添加
*/
documentBuilderObj.ParagraphFormat.Alignment = ParagraphAlignment.Center;
//水平居中
documentBuilderObj.ParagraphFormat.FirstIndent = 0;
//去掉首行缩进的问题
//documentBuilderObj.ParagraphFormat.LeftIndent = -1 * 14;//非首行缩进的问题
|
有任何疑问或技术合作都可联系我
微信:yanfahezuo 【推荐】
QQ:596957738