SpellCheck.IsEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that determines whether the spelling checker is enabled on this text-editing control, such as TextBox or RichTextBox.
public:
property bool IsEnabled { bool get(); void set(bool value); };
public bool IsEnabled { get; set; }
member this.IsEnabled : bool with get, set
Public Property IsEnabled As Boolean
Property Value
true
if the spelling checker is enabled on the control; otherwise, false
. The default value is false
.
Remarks
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.
Dependency Property Information
Item | Value |
---|---|
Identifier field | IsEnabledProperty |
Metadata properties set to true |
None |