积极答复者
WPF 的RichTextBox如何能将内容提取??

问题
答案
-
内容是在Blocks中的,所以你可以遍历Blocks来获得,至于序列化, 我想XamlWriter可以帮你
Best day, Best life- 已标记为答案 Aland LiModerator 2010年5月27日 10:48
-
您好 比卡超,
WPF的RichTextBox里面放的是FlowDocument, 我们可以创建一个TextRange 类来加载或保持编辑内容。 您可以参考下面的代码:
http://msdn.microsoft.com/zh-cn/library/aa970917.aspxAland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.- 已标记为答案 Aland LiModerator 2010年5月27日 10:48
全部回复
-
内容是在Blocks中的,所以你可以遍历Blocks来获得,至于序列化, 我想XamlWriter可以帮你
Best day, Best life- 已标记为答案 Aland LiModerator 2010年5月27日 10:48
-
您好 比卡超,
WPF的RichTextBox里面放的是FlowDocument, 我们可以创建一个TextRange 类来加载或保持编辑内容。 您可以参考下面的代码:
http://msdn.microsoft.com/zh-cn/library/aa970917.aspxAland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.- 已标记为答案 Aland LiModerator 2010年5月27日 10:48