c# 如何设置word表格左缩进?
Microsoft.Office.Interop.Word.Table wTable = null;
wRng = WordDoc.Bookmarks.get_Item(ref oEndOfDoc).Range;
//表格的初始化,16行,5列
wTable = WordDoc.Tables.Add(wRng, 16, 1, ref missing, ref missing);
wTable.Range.Font.Size = 11;//字体大小
wTable.Range.Font.Bold = 0;//取消加粗
//设置表单中的文本是居中对齐
wTable.Range.ParagraphFormat.Alignment = Microsoft.Office.Interop.Word.WdParagraphAlignment.wdAlignParagraphLeft;
wTable.Range.Cells.VerticalAlignment = Microsoft.Office.Interop.Word.WdCellVerticalAlignment.wdCellAlignVerticalCenter;
wTable.Range.ParagraphFormat.SpaceAfter = 6;
wTable.Borders.OutsideLineStyle = Microsoft.Office.Interop.Word.WdLineStyle.wdLineStyleSingle;
wTable.Borders.OutsideLineWidth = Microsoft.Office.Interop.Word.WdLineWidth.wdLineWidth150pt;//1.5磅
wTable.Borders.InsideLineStyle = Microsoft.Office.Interop.Word.WdLineStyle.wdLineStyleDot;
我想设置表格的左缩进 可是在代码中不知道怎样设置 希望各位能帮我一下 感激不禁!!!
[ 本帖最后由 wangnannan 于 2010-2-2 16:08 编辑 ]