Reputation: 20169
I have an application which involves building rich text character by character in order to undo it all at once. In order to retain that character's formatting, I select it and then can add the SelectedRtf property to my StringBuilder, however I want to be able to build each Rich Text character into one Rich Text string so that I can undo it in one go.
My question is how can you combine Rich Text strings into one big string while retaining all the formatting for each character.
Upvotes: 1
Views: 1296
Reputation: 246
merge it this way:
richTextBox2.Select(richTextBox2.TextLength, 0);
richTextBox2.SelectedRtf = richTextBox1.Rtf;
Upvotes: 1