- Code: Select all
var doc = new Document();
var sec = doc.AddSection();
var para = sec.AddParagraph();
string blanks = "(6) ";
TextRange tr = para.AppendText(blanks);
tr.CharacterFormat.UnderlineStyle = UnderlineStyle.Single; // 加底線
doc.SaveToFile("output.doc", FileFormat.Doc);
doc.Close();
期望結果已發 mail :[email protected]