Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SpellCheck.SetIsEnabled Method (TextBoxBase, Boolean)

 

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
)

Parameters

textBoxBase
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.

value
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
Show:
© 2017 Microsoft