When I import text into my rich text control (2014.2.715), the custom dictionary is lost.
I'm using the following code:
var provider = new RtfFormatProvider();
rtf.Document = provider.Import(value);
I'm using the following to set my custom dictionary:
var culture = CultureInfo.GetCultureInfo("en-AU");
var checker = (DocumentSpellChecker)rtf.SpellChecker;
if (!(checker.GetDictionary(culture) is AustralianDictionary))
{
checker.AddDictionary(new AustralianDictionary(), culture);
}
rtf.SpellChecker.SpellCheckingCulture = culture;
Am I doing something wrong? What is the correct way to set a custom dictionary?
I'm using the following code:
var provider = new RtfFormatProvider();
rtf.Document = provider.Import(value);
I'm using the following to set my custom dictionary:
var culture = CultureInfo.GetCultureInfo("en-AU");
var checker = (DocumentSpellChecker)rtf.SpellChecker;
if (!(checker.GetDictionary(culture) is AustralianDictionary))
{
checker.AddDictionary(new AustralianDictionary(), culture);
}
rtf.SpellChecker.SpellCheckingCulture = culture;
Am I doing something wrong? What is the correct way to set a custom dictionary?