You can specify the language used in the Spell Dialog by setting the DialogLanguage property. For example, to set the language to German add the following code to your project:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1SpellChecker1.Options.DialogLanguage = DialogLanguage.German |
To write code in C#
C# |
Copy Code
|
---|---|
c1SpellChecker1.Options.DialogLanguage = DialogLanguage.German; |
Note that the dialog language does not affect spelling. To change the language used for spelling, use the MainDictionary property to select a different spelling dictionary. For example, the following code sets the main dictionary to German:
To write code in Visual Basic
Visual Basic |
Copy Code
|
---|---|
C1SpellChecker1.MainDictionary.FileName = "C:\Program Files\ComponentOne Studio.NET 2.0\bin\C1Spell_de-DE.dct" |
To write code in C#
C# |
Copy Code
|
---|---|
c1SpellChecker1.MainDictionary.FileName = "C:\\Program Files\\ComponentOne Studio.NET 2.0\\bin\\C1Spell_de-DE.dct"; |