StylusPlugIn.IsActiveForInput 属性

定义

获取是否可以 StylusPlugIn 接受输入。

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

属性值

true StylusPlugIn如果能够接受输入,则为 ;否则为 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 以下条件才能接受输入:

适用于