2011-04-19 83 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通過方法,如果這一切你雖然後。

希望有所幫助。