SpellCheck.IsEnabled 属性

定义

获取或设置一个值,该值确定是否对此文本编辑控件(如 TextBoxRichTextBox)启用拼写检查器。

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

属性值

如果对控件启用拼写检查器,则为 true;否则为 false。 默认值是 false

注解

此依赖属性还具有专用的仅写附加属性用法。 用于设置属性的 XAML 语法为 <textBoxBaseClassSpellCheck.IsEnabled="boolValue" .../>,其中 textBoxBaseClass 是派生自 TextBoxBase的类的对象元素, boolValuetruefalse (不区分大小写) 。 若要在代码中将 属性设置为附加属性,请参阅 SetIsEnabled 方法。 没有匹配 GetIsEnabled 的访问器。 若要获取值,请从 TextBoxBase.SpellCheck 属性获取当前SpellCheck对象,然后从该 SpellCheck获取 属性的值IsEnabled

依赖项属性信息

标识符字段 IsEnabledProperty
元数据属性设置为 true

适用于