Working with WPF RichTextBox / Custom Command Bars / Font Functions
Font Functions

The following code snippets demonstrate the code used for font functions:

Font Family

C#
Copy Code
rtb.Selection.FontFamily = newFontFamily("Arial");
Font Size
rtb.Selection.TrimRuns();
foreach(varrun inrtb.Selection.Runs)
{
    run.FontSize = size;
}