How to use custom dictionary in WinForms SpellChecker (SpellCheckerAdv)?
Custom dictionary in SpellCheckerAdv
SpellCheckerAdv supports English language by default and have default predefined dictionary for this. It offers to configure other languages using its CustomDictionary support. Follow the below step for Custom Language Spellcheck.
Step 1: Need to create dictionary file for user desired language and add necessary words details in it.
Step 2: Then need to attach it with the application and define this file location in its property named CustomDictionaryPath.
The CustomDictionaryPath property is used to passing the file path of the user defined custom dictionary. SpellCheckerAdv will function based on the newly defined Custom Dictionary Language. Please make use of the below code example.
C#
private string BasePath = Path.GetDirectoryName(Application.ExecutablePath) + "\\..\\..\\CustomDictionary\\"; //To add custom dictionary into the SpellChecker this.spellChecker1.CustomDictionaryPath = BasePath + "\\UK Dictionary.dic";
VB
Private BasePath As String = Path.GetDirectoryName(Application.ExecutablePath) & "\..\..\CustomDictionary\" 'To add custom dictionary into the SpellChecker Me.spellChecker1.CustomDictionaryPath = BasePath & "\\UK Dictionary.dic"
Reference link: https://help.syncfusion.com/windowsforms/spell-checker/custom-dictionary
Screenshot: