I want to write an application which sorts randomly line of text which I copy from a source and paste into RichTextBox area.
However, there is one condition – text is formatted (some words are in bold, underline etc.). So any suggestions? How should it look like?
I think I should use RichTextBox.Rtf or something but I am really a beginner and I appreciate every hint or example code.
Thanks
It is a bit tricky. You can retrieve the formatted RTF text lines like this
Now you can shuffle the lines like this
Clear the RichtTextBox
Inserting the lines is best done in reverse order because it is easier to select the beginning of the text