共用方式為


StylusPlugIn.IsActiveForInput 屬性

定義

取得 StylusPlugIn 是否能接受輸入的資訊。

public:
 property bool IsActiveForInput { bool get(); };
public bool IsActiveForInput { get; }
member this.IsActiveForInput : bool
Public ReadOnly Property IsActiveForInput As Boolean

屬性值

Boolean

如果 StylusPlugIn 能接受輸入則為 true,否則為 false

範例

下列範例示範如何覆寫 OnIsActiveForInputChanged 方法。

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

    if (!this.IsActiveForInput)
    {
        // Clean up any resources the plug-in uses.
    }
    else
    {
        // Allocate the resources the plug-in uses.
    }
}
Protected Overrides Sub OnIsActiveForInputChanged()

    MyBase.OnIsActiveForInputChanged()

    If Not Me.IsActiveForInput Then
        ' Clean up any resources the plug-in uses.
    Else
        ' Allocate the resources the plug-in uses.
    End If

End Sub

備註

必須符合下列條件, StylusPlugIn 才能接受輸入:

適用於