How to change the font of multiple sizes in richtextbox in C#?
问题 I have a richtextbox and I would like to make it work like WordPad. My problem is that, for example, if I type "123" using the Calibri font, and then "456" using the Arial font and I want to change the size of 2345 it won't let me to do it because they have two different font types. This is where I have the problem: private void combo_sizes_TextChanged(object sender, EventArgs e) { if (rtb.SelectionFont == null) { rtb.SelectionFont = new Font(combo_fonts.Text, Convert.ToInt16(combo_sizes.Text