StylusPlugIn.OnIsActiveForInputChanged メソッド

定義

IsActiveForInput プロパティが変更されたときに発生します。

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

次の例では、 OnIsActiveForInputChanged メソッドをオーバーライドする方法を示します。

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

注釈

OnIsActiveForInputChangedメソッドを使用して、StylusPlugInで使用されるリソースを割り当ててクリーンアップします。

適用対象