1

I would like to create a Richtextbox which load a huge file (several pages of text in some format) and based on format it formats the text (let's say it display html).

I found how to change format of text using selection, but that is very slow and resource expensive. Is there a way to append a preformatted text to Rich Text Box? So that I can format each element and then append it.

Petr
  • 13,747
  • 20
  • 89
  • 144
  • What platform are you using WinForms, WPF, Web? – James Jul 26 '12 at 16:23
  • 1
    That only tells how to hide that from user, but it doesn't explain how to change format in a better manner than selecting it's parts and changing format, keep in mind there could be millions of selections needed to display complicated page, a simple document you display in word within few seconds, could take few days to load using this way – Petr Jul 26 '12 at 16:39
  • Why not save your formatted document in rtf format, then use RichTextBox1.LoadFile(pathToYourRTF)? – APrough Jul 26 '12 at 19:37

1 Answers1

0

This might help you if not the answer you are looking for

But RichTextBox.CanPaste Method determines whether you can paste information from the Clipboard in the specified data format. Please see link the for the System.Windows.Forms.DataFormats it will support

HatSoft
  • 11,077
  • 3
  • 28
  • 43