Back to Devexpress

SpellCheckerOpenOfficeDictionary Class

corelibraries-devexpress-dot-xtraspellchecker-fa4a2fbd.md

latest4.2 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.SpellChecker.Core

Declaration

csharp
public class SpellCheckerOpenOfficeDictionary :
    SpellCheckerISpellDictionary
vb
Public Class SpellCheckerOpenOfficeDictionary
    Inherits SpellCheckerISpellDictionary

The following members 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.

Note

A complete sample project is available at https://github.com/DevExpress-Examples/winforms-spellchecker-enable-in-text-box

csharp
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);
vb
Imports DevExpress.XtraSpellChecker
Imports System
Imports System.Globalization
            spellChecker1.Dictionaries.Clear()

            Dim openOfficeDictionaryEnglish As 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)

Implements

ISpellCheckerDictionary

Inheritance

Object DictionaryBase SpellCheckerDictionaryBase SpellCheckerISpellDictionary SpellCheckerOpenOfficeDictionary

See Also

SpellCheckerOpenOfficeDictionary Members

Download OpenOffice Dictionaries

DevExpress.XtraSpellChecker Namespace