How can I change styles (such as Font, FontSize, Brush) of selected Text in RichTextBox ?
Update : Let\'s say I\'ve a RichTextBox
For a WPF RichTextBox, you have to use the ApplyPropertyValue method to a TextRange. You can get the selected TextRange using the Selected property of the RichTextBox instance.
var selection = myRichTextBox.Selection;
if (!selection.IsEmpty)
selection.ApplyPropertyValue(TextElement.FontSizeProperty, 10.0);