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: