If this is the Component one rich text box - have a look at their documentation
here.
They provide the following solution.
You need to do the same
private void _btnUnderline_Click(object sender, RoutedEventArgs e)
{
bool underline = _rtb.Selection.TextDecorations ==
TextDecorations.Underline;
_rtb.Selection.TextDecorations = underline
? null
: TextDecorations.Underline;
}
Your code will be something like this -
txtMailBody1.Selection.TextDecorations == TextDecoration.Underline;