0
要輸入文本,我使用RichTextBox。爲什麼不正確地添加сustomise字典?
<RichTextBox x:Name="FlowDocumentViewer" Language="en"/>
我打開拼寫檢查器。爲了支持俄語,我添加了自定義字典。
try
{
this.FlowDocumentViewer.SpellCheck.SpellingReform = SpellingReform.PreAndPostreform;
Uri uri = new Uri("Resources/Russian.lex", UriKind.Relative);
if (!this.FlowDocumentViewer.SpellCheck.CustomDictionaries.Contains(uri))
{
this.FlowDocumentViewer.SpellCheck.CustomDictionaries.Add(uri);
}
this.FlowDocumentViewer.SpellCheck.IsEnabled = true;
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
但它工作不正常。
我在做什麼錯?
那究竟是什麼錯誤? – athabaska
單詞「союз」在字典和拼寫檢查器中,他的筆記不正確。並提供替換不在字典中的單詞。 – Ateist