Back to Devexpress

SpellCheckerBase.Culture Property

corelibraries-devexpress-dot-xtraspellchecker-dot-spellcheckerbase.md

latest3.8 KB
Original Source

SpellCheckerBase.Culture Property

Gets or sets the culture-specific settings of the spell checker.

Namespace : DevExpress.XtraSpellChecker

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

NuGet Package : DevExpress.SpellChecker.Core

Declaration

csharp
public CultureInfo Culture { get; set; }
vb
Public Property Culture As CultureInfo

Property Value

TypeDescription
CultureInfo

CultureInfo object that specifies culture settings (the symbol encoding, language and phonetic specifics).

|

Remarks

If the culture setting is changed before the text is checked completely, the remaining part of the text is checked according to new culture specifics.

The SpellChecker uses the dictionary that corresponds with the Culture value. Make sure that corresponding dictionaries for all used cultures are added to the DictionaryCollection.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Culture 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#L21

csharp
spellChecker1.Culture = CultureInfo.InvariantCulture;
spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType;

spell-checker-bind-dictionaries-in-mvvm-applications/CS/DXSpellCheckerBindingDictionaries/ViewModel/MainViewModel.cs#L22

csharp
SpellChecker.SpellCheckMode = SpellCheckMode.AsYouType;
SpellChecker.Culture = new CultureInfo("de-DE");
// Obtain a dictionary collection.

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

vb
'spellChecker1.Culture = new CultureInfo("es-ES");
spellChecker1.Culture = CultureInfo.InvariantCulture
spellChecker1.SpellCheckMode = SpellCheckMode.AsYouType

spell-checker-bind-dictionaries-in-mvvm-applications/VB/DXSpellCheckerBindingDictionaries/ViewModel/MainViewModel.vb#L23

vb
SpellChecker.SpellCheckMode = SpellCheckMode.AsYouType
SpellChecker.Culture = New CultureInfo("de-DE")
' Obtain a dictionary collection.

See Also

SpellCheckerBase Class

SpellCheckerBase Members

DevExpress.XtraSpellChecker Namespace