c# 设置word的表格中文字首行缩进为0

  利用C#设置表格中文字的首行缩进为0的方法:      

  (在测试过程中,以下两行都写才有效,只写一行是无效的)

               table.Cell(rowNumber, columnNumber).Range.ParagraphFormat.CharacterUnitFirstLineIndent = 0;
                table.Cell(rowNumber, columnNumber).Range.ParagraphFormat.FirstLineIndent = 0;

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章