Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
SetIsEnabled Method
Collapse the table of content
Expand the table of content

SpellCheck.SetIsEnabled Method

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)

public static void SetIsEnabled(
	TextBoxBase textBoxBase,
	bool value


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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft