I want to be able to underline a text range in a WPF RichTextBox. I'm aware that this could be done using .ApplyPropertyValue(Inline.TextDecorationsProperty, TextDecorations.Underline);
That is not what I'm interested in, though. I want to be able to underline in the same way that the built in WPF spell checker does - i.e. in a way that doesn't affect existing underlinings as such. What I mean is that if I use TextDecorations.Underline
to do this, it replaces existing underlinings. I need to be able to add as well as remove the underlining without affecting existing styles.
Does anyone have a suggestion? I've tried looking into System.Windows.Media, but I haven't been successful so far. Help would be greatly appreciated!
View Complete Post