RTF Textbox

  • Thread starter Thread starter Patrick F
  • Start date Start date
P

Patrick F

Hi,

I got a Richtextbox in my program, is there a easy way to create a new
line with a font size that i want and a spicific color?
like:
rtfbox.AddTextToNewLine("test1", Color.Red, Size.12, Font.Bold, other
options here);
rtfbox.AddTextToNewLine("test2", Color.Blue, Size.10, Font.Italic, other
options here);

Is this possible?, any guides of how to add data to a RTB?

Patrick
 
Set the RichTextBox.SelectionColor property. Once set, the font color will
be whatever you set it to. This applies to text that is appended to the
RichTextBox after setting the property. Otherwise, you can select text
already in the RichTextBox and set the SelectionColor to color that text.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

The man who questions opinions is wise.
The man who quarrels with facts is a fool.
 
Back
Top