62,074
社区成员
发帖
与我相关
我的任务
分享
string path = @"test.rtf";
System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();
string s = System.IO.File.ReadAllText(path);
System.Windows.Forms.MessageBox.Show(s);
rtBox.Rtf = s;
string plainText = rtBox.Text;
string rtfStr = "";
System.Windows.Forms.RichTextBox rtBox = new System.Windows.Forms.RichTextBox();
rtBox.Rtf = rtfStr;
string plainText = rtBox.Text;