Thank you for contacting us!
Straight to your questions:
- There is a ready-to-use example on how to strip our rich text formatting capabilities in our SDK repository here. I suggest you revise it and get back to us if you have any comments or questions.
- You can refer to this help article in order to learn how you can change the default style settings of RadRichTextBox. Additionally, as LineSpacing is a property of Paragraph, you can change it on a per-document basis by changing it for the initially loaded empty document (which actually contains a single paragraph) and for each document loaded afterwards like this:
.editor.DocumentChanged += editor_DocumentChanged;
sender, EventArgs e)
- Clipboard Support is provided for rich text, as well as for plain text. Please refer to this help article explaining the use of clipboard handlers and demonstrating how you can clear the default handlers and add only a handler which uses TxtFormatProvider.
- Import/Export is fairly easy when using the format providers shipped with RadRichTextBox. In your case I'd suggest the TxtFormatProvider and if you are in need of a data-bound scenario, the respective data provider.
Regarding code formatting, by default rich text clipboard is available so pasting code will result in the formatting being preserved. However, if you decide to clear the clipboard handlers in order to restrict pasting to plain text, this will not be possible.
What I could probably suggest in this regard is to take advantage of the recently released Code Blocks
feature. You could place a button in your application that invokes the respective dialog and syntax formatting will be available. Note that it will still be stripped when exporting with TxtFormatProvider.
I hope the provided information is helpful! Let us know if you need further assistance.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>