How to change font of selected text in extended text box in C #

I can change the text of the whole RTB, but not the selected text.

I am currently trying to do something:

richTextBox1.SelectedText = fontDialog1.Font;

I know that the above method will definitely not work, but this is the current course of action I'm trying to do.

But I just don't know how to access the "field" font for the selected text. Any ideas?

+3
source share
1 answer
richTextBox1.SelectionFont = new Font("Arial", 16);
+1
source

All Articles