c# 設置word的表格中文字首行縮進爲0

  利用C#設置表格中文字的首行縮進爲0的方法:      

  (在測試過程中,以下兩行都寫纔有效,只寫一行是無效的)

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

 

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