StylusPlugIn.OnIsActiveForInputChanged Methode

Definition

Tritt auf, wenn sich die IsActiveForInput Eigenschaft ändert.

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

Beispiele

Im folgenden Beispiel wird das Überschreiben der OnIsActiveForInputChanged Methode veranschaulicht.

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

Hinweise

Verwenden Sie die OnIsActiveForInputChanged Methode zum Zuordnen und Bereinigen von Ressourcen, die von der StylusPlugIn.

Gilt für: