Share via


StylusPlugIn.Enabled 屬性

定義

取得或設定 StylusPlugIn 是否為作用中。

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

屬性值

如果 StylusPlugIn 為作用中則為 true,否則為 false。 預設為 true

範例

下列範例會 Enabled 檢查 方法中的 OnEnabledChanged 屬性值。

protected override void OnEnabledChanged()
{
    base.OnEnabledChanged();

    if (this.Enabled)
    {
        MessageBox.Show("The StylusPlugin is enabled.");
    }
    else
    {
        MessageBox.Show("The StylusPlugin is not enabled.");
    }
}
Protected Overrides Sub OnEnabledChanged()

    MyBase.OnEnabledChanged()

    If Me.Enabled Then
        MessageBox.Show("The StylusPlugin is enabled.")
    Else
        MessageBox.Show("The StylusPlugin is not enabled.")
    End If

End Sub

備註

XAML 文字使用方式

這個屬性通常不會用於 XAML。

適用於