WPF RichtextBox中加载Rtf字段

 

MemoryStream stream = new MemoryStream(ASCIIEncoding.Default.GetBytes((string)rtf));
 mRichTextBox.Selection.Load(stream, DataFormats.Rtf);

 

posted @ 2012-05-30 17:24  chun0318  阅读(418)  评论(0编辑  收藏  举报