ComponentOne RichTextBox for WPF
Working with WPF RichTextBox / Custom Command Bars / Font Functions
In This Topic
    Font Functions
    In This Topic

    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;
    }