Sign in to follow this  

[.net] RichTextBox - change text but keep formating

This topic is 3588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all. For example, i have text "I'm toxi" stored in RichTextBox control. Now i need to change text to "I'm taxi", for example, but to keep "look" of text. How to manage that? Sorry for broken english.

Share this post


Link to post
Share on other sites
Quote:
Original post by toxi
Hi all.

For example, i have text "I'm toxi" stored in RichTextBox control.
Now i need to change text to "I'm taxi", for example, but to keep "look" of text.

How to manage that?

Sorry for broken english.


I think that if you change the Text property, formatting tags aren't modified...

Share this post


Link to post
Share on other sites
Quote:
Original post by toxi
no :(


Ok, perhaps they aren't modified in cases like the one of your example...
The only solution that I see is to directly work with rtf tags and the Rtf property. I imagine it will be hard at least though...

Share this post


Link to post
Share on other sites

This topic is 3588 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this