Skip to main content
A newer version of this page is available. .

SpellCheckerOpenOfficeDictionary Class

Represents an XtraSpellChecker dictionary originated from a dictionary and affix files of the OpenOffice.org project format.

Namespace: DevExpress.XtraSpellChecker

Assembly: DevExpress.SpellChecker.v18.1.Core.dll

Declaration

public class SpellCheckerOpenOfficeDictionary :
    SpellCheckerISpellDictionary

The following members accept/return SpellCheckerOpenOfficeDictionary objects:

Remarks

The SpellCheckerOpenOfficeDictionary instance is created by decompressing the base file, specified by the DictionaryBase.DictionaryPath property with the help of the affix file located at the SpellCheckerISpellDictionary.GrammarPath file path.

The dictionaries and affix files used are part of the OpenOffice.org project. They are available for download at Dictionaries page.

Note

We bear no responsibility for the content and availability of dictionaries and affix files, since they are part of an open source project OpenOffice.org.

Example

The following code demonstrates how to create the SpellCheckerOpenOfficeDictionary dictionary at runtime.

using DevExpress.XtraSpellChecker;
using System;
using System.Globalization;
            spellChecker1.Dictionaries.Clear();

            SpellCheckerOpenOfficeDictionary openOfficeDictionaryEnglish = new SpellCheckerOpenOfficeDictionary();
            openOfficeDictionaryEnglish.DictionaryPath = @"Dictionaries\OpenOffice\en_US\en_US.dic";
            openOfficeDictionaryEnglish.GrammarPath = @"Dictionaries\OpenOffice\en_US\en_US.aff";
            openOfficeDictionaryEnglish.Culture = new CultureInfo("en-US");
            spellChecker1.Dictionaries.Add(openOfficeDictionaryEnglish);

The following code snippets (auto-collected from DevExpress Examples) contain references to the SpellCheckerOpenOfficeDictionary class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also