2011-04-19 71 views

回答

5
yourRichTextBox.AppendText(BodyString); 
1

this answer

的WPF的RichTextBox包括设定内容一拉MSDN文档属性:

// Create a FlowDocument to contain content for the RichTextBox. 
FlowDocument myFlowDoc = new FlowDocument(); 

// Add paragraphs to the FlowDocument. 
myFlowDoc.Blocks.Add(new Paragraph(new Run("Paragraph 1"))); 
myFlowDoc.Blocks.Add(new Paragraph(new Run("Paragraph 2"))); 
myFlowDoc.Blocks.Add(new Paragraph(new Run("Paragraph 3"))); 
RichTextBox myRichTextBox = new RichTextBox(); 

// Add initial content to the RichTextBox. 
myRichTextBox.Document = myFlowDoc; 

您可以只使用AppendText通过方法,如果这一切你虽然后。

希望有所帮助。