Condividi tramite


StylusPlugIn.OnIsActiveForInputChanged Metodo

Definizione

Si verifica quando la proprietà IsActiveForInput cambia.

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

Esempio

Nell'esempio seguente viene illustrato come eseguire l'override del OnIsActiveForInputChanged metodo .

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

Commenti

Usare il OnIsActiveForInputChanged metodo per allocare e pulire le risorse usate da StylusPlugIn.

Si applica a