Tag Archives: format text

Format text in a RichTextBox in C#

To format text in a RichTextBox, use the control’s Select method to select the text. Then use the “Selection” properties (SelectionAlignment, SelectionBackColor, SelectionFont, etc.) to set the properties for the selected text. This example uses the following code to format … Continue reading

Posted in controls | Tagged , , , , , , , , , , , | 2 Comments