开发者

WPF Richtext box content

开发者 https://www.devze.com 2022-12-27 10:47 出处:网络
how do i get the richtext box\'s content with all the formatting intact. i used a TextRange object to get the content out of the richtext box but wen i get its .text property all its formatting is gon

how do i get the richtext box's content with all the formatting intact. i used a TextRange object to get the content out of the richtext box but wen i get its .text property all its formatting is gone ... how do i get the forma开发者_如何学运维tted content in richtext box in wpf.


RichTextBox operates on FlowDocuments. You can get underlying FlowDocument from RichTextBox.Document property.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号