0
如何使RichTextBox
顯示一個帶格式的字符串?如何在Silverlight RichTextBox中設置格式化文本?
我使用Run
但忽略了最低工作:
// create a paragraph
Paragraph prgParagraph = new Paragraph();
prgParagraph.FontFamily = new FontFamily("Comic Sans MS");
// create some text, and add it to the paragraph
Run rnMyText = new Run();
rnMyText.Text = w.meaning;
prgParagraph.Inlines.Add(rnMyText);
rtxtMeaning.Blocks.Add(prgParagraph);
你需要接受你的問題的答案。 – Gabe 2011-01-19 20:59:51