SpellCheck.SetIsEnabled Method (TextBoxBase, Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

static member SetIsEnabled : 
        textBoxBase:TextBoxBase *
        value:bool -> unit


Type: System.Windows.Controls.Primitives.TextBoxBase

The text-editing control on which to enable or disable the spelling checker. Example controls include TextBox and RichTextBox.

Type: System.Boolean

A Boolean value that specifies whether the spelling checker is enabled on the text-editing control.

This method enables an attached property usage for the IsEnabled property in XAML. The following example shows the XAML usage.

.NET Framework
Available since 3.0
Return to top