corelibraries-devexpress-dot-xtraspellchecker-dot-dictionarybase-d70791fc.md
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Gets or sets the path to the dictionary file.
Namespace : DevExpress.XtraSpellChecker
Assembly : DevExpress.SpellChecker.v25.2.Core.dll
NuGet Package : DevExpress.SpellChecker.Core
public string DictionaryPath { get; set; }
Public Property DictionaryPath As String
| Type | Description |
|---|---|
| String |
A String representing a path to the dictionary file.
|
When the file path is changed, the dictionary is cleared by calling the DictionaryBase.Clear method.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DictionaryPath 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#L29
customDictionary.AlphabetPath = @"Dictionaries\EnglishAlphabet.txt";
customDictionary.DictionaryPath = @"Dictionaries\CustomEnglish.dic";
customDictionary.Culture = CultureInfo.InvariantCulture;
asp-net-web-forms-spell-checker-getting-started/CS/WebApplication1/Default.aspx.cs#L22
dictionary.AddWord(dic[i]);
dictionary.SaveAs(dic.DictionaryPath);
}
winforms-spellchecker-enable-in-text-box/VB/Form1.vb#L29
customDictionary.AlphabetPath = "Dictionaries\EnglishAlphabet.txt"
customDictionary.DictionaryPath = "Dictionaries\CustomEnglish.dic"
customDictionary.Culture = CultureInfo.InvariantCulture
asp-net-web-forms-spell-checker-getting-started/VB/WebApplication1/Default.aspx.vb#L25
Next i
dictionary.SaveAs(dic.DictionaryPath)
End Sub
See Also