Bewerken

Delen via


StylusPlugIn.IsActiveForInput Property

Definition

Gets whether the StylusPlugIn is able to accept input.

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

Property Value

true if the StylusPlugIn is able to accept input; otherwise false.

Examples

The following example demonstrates how to override the OnIsActiveForInputChanged method.

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

Remarks

The following conditions must be met for the StylusPlugIn to accept input:

Applies to