将AcceptReturn属性设置为true
也是利用TextRange类,通过Load方法
//path为完整加载文件路径名 private void LoadRtfFile(string path) { FileStream fs = file.Open(path,FileMode.Open); TextRange textRange = new TextRange(yourRichTextBoxName.Document.ContentStart, yourRichTextBoxName.Document.ContentEnd); textRange.Load(fs,DataFormats.Rtf); fs.Close(); }