ComponentOne SpellChecker for WinForms
Features / Multiple-Language Support
In This Topic
    Multiple-Language Support
    In This Topic

    C1SpellChecker has a built-in American English dictionary. However, it provides multiple language support for implementing spell checking in 15 other international languages.

     To spell-check text in other languages, use the MainDictionary property and set the FileName property to the name of the dictionary you want to use.

    ComponentOne ships the following 15 international dictionaries with C1SpellChecker, in addition to the English – US dictionary that is built into the control:

    C1Spell_de-DE.dct

    German dictionary.

    C1Spell_el-GR.dct

    Greek dictionary.

    C1Spell_en-AU.dct

    English – Australia dictionary.

    C1Spell_en-CA.dct

    English – Canada dictionary.

    C1Spell_en-GB.dct

    English – Great Britain dictionary.

    C1Spell_en-US.dct

    English – US dictionary, built into the control as well.

    C1Spell_es-AR.dct

    Spanish – Argentina dictionary.

    C1Spell_es-ES.dct

    Spanish – Spain dictionary.

    C1Spell_es-MX.dct

    Spanish – Mexico dictionary.

    C1Spell_fr-CA.dct

    French – Canada dictionary.

    C1Spell_fr-FR.dct

    French – France dictionary.

    C1Spell_it-IT.dct

    Italian dictionary.

    C1Spell_nl-NL.dct

    Dutch dictionary.

    C1Spell_pt-BR.dct

    Portuguese – Brazil dictionary.

    C1Spell_pt-PT.dct

    Portuguese – Portugal dictionary.

    C1Spell_ru-RU.dct

    Russian dictionary.

    Note: By default, the DCT files are installed in the C:\Program Files (x86)\ComponentOne\Dictionaries directory.
    If your application uses any dictionaries other than the built-in American English, then you need to deploy the dictionaries with the application.

    Deploying Dictionaries

    Deploying dictionaries is trivial for English applications since the English dictionary is built into the C1SpellChecker component. Other languages are available, but require deploying the appropriate dictionaries.

    The easiest way to deploy the dictionaries with your application is to add the .dct files to your project, and set the Build Action property to None and the Copy to Output Directory property to Copy if newer. This will place the .dct files in the application directory where C1SpellChecker can find them.

    When using this deployment method, make sure the main dictionary's FileName value specifies a file name without a path. This way, the component will search for the dictionary in the directory where the C1SpellChecker assembly is located.

    By default, C1SpellChecker will also localize the built-in spell dialog box automatically, based on the current culture. You can override this behavior and specify the language used in the dialog box by setting the DialogLanguage property.