How can I change the Font.Size
in a RichTextBox .SelectionFont
(which has two or three different FontFamily
), without affecting the FontFamily
and the FontStyle
This one works fine, if I have only one Font.Family
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont.FontFamily, 12);
But, if I have more, it throws nullexception.