New to Telerik UI for WPFStart a free 30-day trial

ISpellChecker

Interface

Represents a spell checker interface that provides methods for spell-checking text.

Definition

Namespace:Telerik.Windows.Documents.Proofing

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public interface ISpellChecker

Derived Classes: DocumentSpellChecker

Properties

Represents the settings for the spell checker.

C#
SpellCheckerSettings Settings { get; set; }

Gets or sets the culture used by the spell checker for spell checking operations.

C#
CultureInfo SpellCheckingCulture { get; set; }
Property Value:

A CultureInfo object representing the culture that determines the language and locale to be used during spell checking.

Methods

Adds a word to the spell check dictionary.

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

The word to add to the dictionary.

cultureCultureInfo

The culture information that specifies the linguistic rules to apply.

Adds a specified word to the spell checker's dictionary.

C#
void AddWord(string word)
Parameters:wordstring

The word to be added to the dictionary.

Determines whether a word can be added to the spell checker dictionary.

C#
bool CanAddWord()
Returns:

bool

A boolean value indicating if the word can be added. Returns true if the word can be added; otherwise, false.

Determines whether a word can be added to the spell checker for the specified culture.

C#
bool CanAddWord(CultureInfo culture)
Parameters:cultureCultureInfo

The culture information that specifies the language context for the spell checker.

Returns:

bool

Returns true if the word can be added; otherwise, false.

Checks if the specified word is correct according to the spelling rules defined by the spell checker.

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

The word to be checked for correctness.

cultureCultureInfo

The CultureInfo that specifies the language and regional settings for the spell checking.

Returns:

bool

Returns true if the word is spelled correctly; otherwise, false.

Checks whether the specified word is correctly spelled.

C#
bool CheckWordIsCorrect(string word)
Parameters:wordstring

The word to be checked for spelling correctness.

Returns:

bool

True if the word is spelled correctly; otherwise, false.

Retrieves the custom dictionary used by the spell checker.

C#
ICustomWordDictionary GetCustomDictionary()
Returns:

ICustomWordDictionary

An instance of a custom dictionary, which contains user-defined words that are not found in the standard spell checking dictionary.

Retrieves the custom dictionary associated with the specified culture information.

C#
ICustomWordDictionary GetCustomDictionary(CultureInfo culture)
Parameters:cultureCultureInfo

The culture information for which to retrieve the custom dictionary.

Returns:

ICustomWordDictionary

The custom dictionary for the specified culture, or null if no custom dictionary exists.

Retrieves the dictionary used by the spell checker for checking spelling and grammar.

C#
IWordDictionary GetDictionary()
Returns:

IWordDictionary

The dictionary associated with the spell checker as an instance of the IWordDictionary interface.

Retrieves the dictionary for the specified culture information.

C#
IWordDictionary GetDictionary(CultureInfo culture)
Parameters:cultureCultureInfo

The culture information for which the dictionary is to be retrieved.

Returns:

IWordDictionary

A dictionary object that corresponds to the specified culture.

Retrieves a list of suggestions for a given word based on the specified culture information.

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

The word for which suggestions are to be retrieved.

cultureCultureInfo

The culture information that dictates the language and rules to be applied while generating suggestions.

Returns:

ICollection<string>

A collection of suggestions for the specified word.

Retrieves a list of suggested corrections for the specified misspelled word.

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

The misspelled word for which suggestions are being requested.

Returns:

ICollection<string>

A list of string suggestions that provide possible corrections for the given word.

Removes a specified word from the spell checker dictionary.

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

The word to be removed from the dictionary.

cultureCultureInfo

The culture information that defines the language context of the word.

Removes a specified word from the spell check dictionary.

C#
void RemoveWord(string word)
Parameters:wordstring

The word to be removed from the dictionary.

Events

C#
event EventHandler DataChanged