StylusPlugIn.OnIsActiveForInputChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when the IsActiveForInput property changes.
protected:
virtual void OnIsActiveForInputChanged();
protected virtual void OnIsActiveForInputChanged ();
abstract member OnIsActiveForInputChanged : unit -> unit
override this.OnIsActiveForInputChanged : unit -> unit
Protected Overridable Sub OnIsActiveForInputChanged ()
Examples
The following example demonstrates how to override the OnIsActiveForInputChanged method.
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
Remarks
Use the OnIsActiveForInputChanged method to allocate and clean up resources used by the StylusPlugIn.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET