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 満たす必要があります。

適用対象