This question is locked. New answers and comments are not allowed.
Is there anything on the document that will list the misspelled words. I'm basically going to give a warning message, saying you have these misspelled words, do you wish to continue. I'm doing it like below which works fine, but I'm just wondering if there is already a list in the document.
UPDATE: This code below fails on words that are considered names like 'Microsoft' with an uppercase M. It won't find it in the dictionary, but it doesn't show a red under because the M is capitalized. Any way I can ignore those? Or would the rule be just ignore everything that starts with a capital.
UPDATE: This code below fails on words that are considered names like 'Microsoft' with an uppercase M. It won't find it in the dictionary, but it doesn't show a red under because the M is capitalized. Any way I can ignore those? Or would the rule be just ignore everything that starts with a capital.
string
a =
new
TxtFormatProvider().Export(rrtbDescription.Document);
string
[] allwords = a.Split(
' '
);
List<
string
> misspelled =
new
List<
string
>();
foreach
(var z
in
allwords)
{
if
(
this
.rrtbDescription.SpellChecker.CheckWordIsCorrect(z) ==
false
)
{
misspelled.Add(z);
}
}