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

適用於