Compartilhar via


StylusPlugIn.OnIsActiveForInputChanged Método

Definição

Ocorre quando a propriedade IsActiveForInput muda.

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

Exemplos

O exemplo a seguir demonstra como substituir o OnIsActiveForInputChanged método.

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

Comentários

Use o OnIsActiveForInputChanged método para alocar e limpar os recursos usados StylusPlugInpelo .

Aplica-se a