Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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
)

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

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft