Using different colors and fonts in a richtextbox
Hi,
How can I print a line in a richtextbox with a different color, font, style (bold-underline-regular) than another line.
For example : I want to print a title-line in bold and color green. The rest off the text has to be in black and regular (or the color and font set in the properties off the textbox).
When I change a color in the textbox with code, the whole textbox is changed. I just want some lines in another color. I tried to slove the problem with a selectiontext and selectionfont but then also the whole textbox was in green and bold ! How can I do that ?
thanks,
Pascal.
|