StylusPlugIn.IsActiveForInput Property
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.
Gets whether the StylusPlugIn is able to accept input.
public:
property bool IsActiveForInput { bool get(); };
public bool IsActiveForInput { get; }
member this.IsActiveForInput : bool
Public ReadOnly Property IsActiveForInput As Boolean
Property Value
true
if the StylusPlugIn is able to accept input; otherwise false
.
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
The following conditions must be met for the StylusPlugIn to accept input:
The StylusPlugIn is a member of a StylusPlugInCollection.
The Element of the StylusPlugIn is visible and enabled.
Applies to
التعاون معنا على GitHub
يمكن العثور على مصدر هذا المحتوى على GitHub حيث يمكنك أيضاً إضافة مشاكل وطلبات سحب ومراجعتها. للحصول على معلومات إضافية، اطلع على دليل المساهم لدينا.