Share via


StylusPlugIn.OnIsActiveForInputChanged Méthode

Définition

Se produit quand la propriété IsActiveForInput change.

protected:
 virtual void OnIsActiveForInputChanged();
protected virtual void OnIsActiveForInputChanged ();
abstract member OnIsActiveForInputChanged : unit -> unit
override this.OnIsActiveForInputChanged : unit -> unit
Protected Overridable Sub OnIsActiveForInputChanged ()

Exemples

L’exemple suivant montre comment remplacer la OnIsActiveForInputChanged méthode.

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

Remarques

Utilisez la OnIsActiveForInputChanged méthode pour allouer et nettoyer les ressources utilisées par le StylusPlugIn.

S’applique à