Jak mogę zmienić wybrany kolor tła tekstu w polu tekstowym Rich wpf c #

Jak mogę wyświetlić tekst HTML doRichTextBox kontrola?

Właściwie chcę zmienić kolor tła wybranego tekstuRichTextBox w C # wpf. Próbowałem tego kodu, ale nie wyświetla sformatowanego tekstu.

Proszę mi pomóc ... Z góry dziękuję!

void rtbTextEditor_SelectionChanged(object sender, RoutedEventArgs e)
{
    SelectionText = rtbTextEditor.Selection.Text.Trim();
    if (SelectionText != string.Empty)
    {
        if (VisualEditor.Document.Body != null)
        {
             //VisualEditor is web browser
             VisualEditor.Document.Body.InnerHtml = @"""<html><body><FONT style=""BACKGROUND-COLOR: #ffff00""><bold>""" + rtbTextEditor.Selection.Text + @"""</Bold></FONT></body></html>""";
             VisualEditor.Document.ExecCommand("SelectAll", false, null);
             rtbTextEditor.Document.Blocks.Add(new Paragraph(new Run(VisualEditor.Document.Body.InnerText.ToString())));
        }
    }
}

questionAnswers(1)

yourAnswerToTheQuestion