WPF RichTextBox and RTF specification support
-
Tuesday, April 03, 2012 4:29 PM
Hi,
we are using VS2010 with .NET 4 and WPF RichtextBox. Can anybody tell me what version of the RTF specification the control supports?
1.0, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9.1?
Best,
Michael
All Replies
-
Tuesday, April 03, 2012 5:38 PM
Hi Muchinger,
check below link
http://www.codeproject.com/Articles/66054/A-Bindable-WPF-RichTextBox (Version 1.2)
http://wpf.2000things.com/2011/09/07/381-loading-rtf-files-into-a-richtextbox/
Regards
-
Thursday, April 05, 2012 6:12 AMModerator
Hi Muchinger,
WPF RichTextBox use FlowDocument format, there is no such RichTextBox support RTF directly, you could use TextRange.Load method to load RTF specification.
Best regards,
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Proposed As Answer by Luke-Skywalker Friday, April 06, 2012 9:12 AM
- Marked As Answer by Sheldon _XiaoModerator Tuesday, April 17, 2012 3:44 AM
-
Thursday, April 05, 2012 9:26 AM
All,
thanks for your answers, but my question is still open. Our code is running fine, so I do not need an "how-to" remarks. Let me try to explain in another way our needs:
There are different versions of the RTF standard or the RTF specification: 1.0, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9.1. For 1.6 you may look at http://msdn.microsoft.com/en-us/library/aa140277(v=office.10).aspx
Now: which one is supported by RichTextBox, FlowDocument, WPF, .NET 4.0?
Thanks
Michael
-
Friday, April 06, 2012 9:13 AM
Now: which one is supported by RichTextBox, FlowDocument, WPF, .NET 4.0?
All support.
You can try to use textrange load method
NEU_ShieldEdge
-
Monday, April 16, 2012 8:26 AM
Thanks for the reply Luke.
Maybe it is because I am not a native English speaker, but I still do not understand. You say "All support.". So my question is: "All support what?". Or did you mean "All (1.0, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9.1.) are supported by RichTextBox/FlowDocument in .NET 4.0"?
Thanks
Michael
-
Monday, April 16, 2012 8:50 AM
Yes,you can use TextRange.Load method to load all version RTF.Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Muchinger Monday, April 16, 2012 8:51 AM

