Back to Devexpress

DictionaryBase.DictionaryPath Property

corelibraries-devexpress-dot-xtraspellchecker-dot-dictionarybase-d70791fc.md

latest3.7 KB
Original Source

DictionaryBase.DictionaryPath Property

SECURITY-RELATED CONSIDERATIONS

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

Declaration

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

Property Value

TypeDescription
String

A String representing a path to the dictionary file.

|

Remarks

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

csharp
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

csharp
dictionary.AddWord(dic[i]);
    dictionary.SaveAs(dic.DictionaryPath);
}

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

vb
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

vb
Next i
    dictionary.SaveAs(dic.DictionaryPath)
End Sub

Implements

DictionaryPath

See Also

DictionaryBase Class

DictionaryBase Members

DevExpress.XtraSpellChecker Namespace