New to Telerik UI for WinForms? Start a free 30-day trial

ISpellChecker

Interface

Exposes culture-aware word validation, custom-word editing, and spelling suggestions.

Definition

Namespace:Telerik.WinControls.SpellChecker.Proofing

Assembly:Telerik.WinControls.SpellChecker.dll

Syntax:

C#
public interface ISpellChecker : IDisposable

Inherited Members IDisposable.Dispose()

Properties

Gets or sets the culture used by operations that do not take an explicit culture.

C#
CultureInfo SpellCheckingCulture { get; set; }

Methods

Adds a spelling to the custom dictionary for the specified culture.

C#
void AddWord(string word, CultureInfo culture)
Parameters:wordstring

The spelling to add.

cultureCultureInfo

The culture whose custom dictionary receives the spelling.

Adds a spelling to the custom dictionary for the checker's active culture.

C#
void AddWord(string word)
Parameters:wordstring

The spelling to add.

Determines whether a custom dictionary is available for the checker's active culture.

C#
bool CanAddWord()
Returns:

bool

true when a custom dictionary is available; otherwise, false.

Determines whether a custom dictionary is available for the specified culture.

C#
bool CanAddWord(CultureInfo culture)
Parameters:cultureCultureInfo

The culture whose custom dictionary is checked.

Returns:

bool

true when a custom dictionary is available; otherwise, false.

Determines whether a word is recognized using the specified culture.

C#
bool CheckWordIsCorrect(string word, CultureInfo culture)
Parameters:wordstring

The spelling to check.

cultureCultureInfo

The culture whose word dictionaries are used.

Returns:

bool

true when the spelling is recognized; otherwise, false.

Determines whether a word is recognized using the checker's active culture.

C#
bool CheckWordIsCorrect(string word)
Parameters:wordstring

The spelling to check.

Returns:

bool

true when the spelling is recognized; otherwise, false.

Gets spelling suggestions using the specified culture.

C#
ICollection<string> GetSuggestions(string word, CultureInfo culture)
Parameters:wordstring

The spelling for which to find suggestions.

cultureCultureInfo

The culture whose word dictionaries are used.

Returns:

ICollection<string>

The candidate replacement spellings.

Gets spelling suggestions using the checker's active culture.

C#
ICollection<string> GetSuggestions(string word)
Parameters:wordstring

The spelling for which to find suggestions.

Returns:

ICollection<string>

The candidate replacement spellings.

Removes a spelling from the custom dictionary for the specified culture.

C#
void RemoveWord(string word, CultureInfo culture)
Parameters:wordstring

The spelling to remove.

cultureCultureInfo

The culture whose custom dictionary is searched.

Removes a spelling from the custom dictionary for the checker's active culture.

C#
void RemoveWord(string word)
Parameters:wordstring

The spelling to remove.

Events

Occurs when spell-checking data or the active culture changes.

C#
event EventHandler DataChanged