views:

30

answers:

1

I enabled spelling on my WPF richtextbox and I want to get the misspelled word at current caret position before the context menu with spelling suggestions is displayed.

A: 

Check this out http://www.dotnetfunda.com/articles/article842-spellchecker-in-wpf-.aspx

Right around here seems to discuss some options which may help your scenario: "Here we are using SpellingError class to get the Suggessions. CaretIndex returns the index where the carat is in the textbox. GetSpellingError can return SpellingError object only when the current Carat location has a word with errors and also SpellCheck is enabled for the TextBox. "

halfevil