SpellCheck.IsEnabled Property

 
System_CAPS_noteNote

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

Gets or sets a value that determines whether the spelling checker is enabled on this text-editing control, such as TextBox or RichTextBox.

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

public bool IsEnabled { get; set; }

Property Value

Type: System.Boolean

true if the spelling checker is enabled on the control; otherwise, false. The default value is false.

This dependency property also has a specialized write-only attached property usage. The XAML syntax for setting the property is <textBoxBaseClass SpellCheck.IsEnabled="boolValue" .../>, where textBoxBaseClass is an object element for a class that derives from TextBoxBase, and boolValue is either true or false (case insensitive). To set the property as an attached property in code, see the SetIsEnabled method. There is no matching GetIsEnabled accessor. To get the value, get the current SpellCheck object from the TextBoxBase.SpellCheck property, and then get the value of the IsEnabled property from that SpellCheck.

See Remarks.

Identifier field

IsEnabledProperty

Metadata properties set to true

None

.NET Framework
Available since 3.0
Return to top
Show: