Back to Devexpress

HunspellDictionary.GrammarPath Property

corelibraries-devexpress-dot-xtraspellchecker-dot-hunspelldictionary.md

latest2.6 KB
Original Source

HunspellDictionary.GrammarPath Property

Gets or sets the filename of the affix file (.aff) to be loaded.

Namespace : DevExpress.XtraSpellChecker

Assembly : DevExpress.SpellChecker.v25.2.Core.dll

NuGet Package : DevExpress.SpellChecker.Core

Declaration

csharp
public string GrammarPath { get; set; }
vb
Public Property GrammarPath As String

Property Value

TypeDescription
String

A String value, specifying the path to the affix file.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GrammarPath property.

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.

winforms-spellchecker-enable-in-text-box/CS/Form1.cs#L103

csharp
hunspellDictionaryEnglish.DictionaryPath = @"Dictionaries\Hunspell\en_US\en_US.dic";
hunspellDictionaryEnglish.GrammarPath = @"Dictionaries\Hunspell\en_US\en_US.aff";
hunspellDictionaryEnglish.Culture = new CultureInfo("en-US");

winforms-spellchecker-enable-in-text-box/VB/Form1.vb#L93

vb
hunspellDictionaryEnglish.DictionaryPath = "Dictionaries\Hunspell\en_US\en_US.dic"
hunspellDictionaryEnglish.GrammarPath = "Dictionaries\Hunspell\en_US\en_US.aff"
hunspellDictionaryEnglish.Culture = New CultureInfo("en-US")

See Also

HunspellDictionary Class

HunspellDictionary Members

DevExpress.XtraSpellChecker Namespace