Add Dictionaries to KetticSpellChecker in C#.NET
KetticSpellChecker control for Windows Forms contains a predefined dictionary to perform English spelling check by default setting. When the developers want to set the spell checking to other languages, they can add other language dictionaries into the KetticSpecllChecker control. Additionally, this control is able to perform the mixed languages spelling check and easily change the language and corresponding dictionary used during spell checking. In this C# tutorial, we will go through how to add a custom dictionary to the control
Add a Custom Dictionary into KetticSpellChecker
The following steps demonstrate how to load a French (fr-FR) dictionary to the KetticSpellChecker control and set the dictionary for your Windows application.
The following C# code sample demonstrate how to achieve the steps above
And now, we can add the custom dictionary into the KetticSpellChecker control through the GetControlSpellChecker method. We can use only one KetticSpellChecker instance to add different dictionaries of the same language for spell checking in your application. After we add the custom dictionary to this control, we should define a culture for the control via the CultureInfo property. The C# code below demonstrates how to define the culture.
The following C# code sample shows how to add a dictionary into the KetticSpellChecker WinForms control
And then, we can set the SpellCheckingCulture property for the KetticSpellChecker to apply a specific dictionary from the available ones.
| ![]() UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlGet Started in C#SpellChecker - ModesSpellChecker - DictionariesSpellChecker - LocalizationWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |