Jump to content
  • Advertisement
Sign in to follow this  
toxi

[.net] RichTextBox - change text but keep formating

This topic is 3774 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!