SpellCheck Class

 

Provides real-time spell-checking functionality to text-editing controls, such as TextBox and RichTextBox.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

System.Object
  System.Windows.Controls.SpellCheck

public sealed class SpellCheck

NameDescription
System_CAPS_pubpropertyCustomDictionaries

Gets the collection of lexicon file locations that are used for custom spell checking.

System_CAPS_pubpropertyIsEnabled

Gets or sets a value that determines whether the spelling checker is enabled on this text-editing control, such as TextBox or RichTextBox.

System_CAPS_pubpropertySpellingReform

Gets or sets the spelling reform rules that are used by the spelling checker.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetCustomDictionaries(TextBoxBase)

Gets the collection of lexicon file locations that are used for custom spelling checkers on a specified text-editing control.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGetIsEnabled(TextBoxBase)

Returns a value that indicates whether the spelling checker is enabled on the specified text-editing control.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticSetIsEnabled(TextBoxBase, Boolean)

Enables or disables the spelling checker on the specified text-editing control, such as TextBox or RichTextBox.

System_CAPS_pubmethodSystem_CAPS_staticSetSpellingReform(TextBoxBase, SpellingReform)

Determines the spelling reform rules that are used by the spelling checker.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticCustomDictionariesProperty

Identifies the CustomDictionaries dependency property.

System_CAPS_pubfieldSystem_CAPS_staticIsEnabledProperty

Identifies the IsEnabled dependency property.

System_CAPS_pubfieldSystem_CAPS_staticSpellingReformProperty

Identifies the SpellingReform dependency property.

To enable the spelling checker, set the SpellCheck.IsEnabled property to true on a text-editing control. When this spelling checker is enabled, misspelled words are underlined by using a red wavy line, as shown in the following illustration. Spelling checker is supported only when WPF provides a default dictionary. In .NET Framework 4, WPF provides dictionaries for English, French, German, and Spanish.

Textbox with spell-checking

To add a custom dictionary, add the location of the lexicon file to the CustomDictionaries collection.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: