RichTextBox specific colors per few characters / lines C#

Posted by Xavier on Stack Overflow See other posts from Stack Overflow or by Xavier
Published on 2009-11-16T04:57:59Z Indexed on 2010/05/16 16:00 UTC
Read the original article Hit count: 183

Filed under:
|
|
|

I have richTextBox1, and here is the contents:

line one from my textbox is this, and i want this to be normal, arial, 8 point non-bold font

line two, i want everything after the | to be bolded... | this is bold

line three: everything in brackets i (want) to be the color (Red)

line 4 is "this line is going to be /slanted/ or with italics

and so on, basically if I know how to do what I mentioned above, I'll know everything I need to know to complete my project. Code examples would be very very much appreciated! :)

© Stack Overflow or respective owner

Related posts about c#

Related posts about richtextbox