StylusPlugIn.IsActiveForInput Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottiene un valore che indica se l'oggetto è in grado di accettare l'input StylusPlugIn .
public:
property bool IsActiveForInput { bool get(); };
public bool IsActiveForInput { get; }
member this.IsActiveForInput : bool
Public ReadOnly Property IsActiveForInput As Boolean
Valore della proprietà
true se è in grado di accettare l'input StylusPlugIn ; in caso contrario false, .
Esempio
Nell'esempio seguente viene illustrato come eseguire l'override del OnIsActiveForInputChanged metodo .
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
Commenti
Per accettare l'input StylusPlugIn , è necessario soddisfare le condizioni seguenti:
è StylusPlugIn un membro di un oggetto StylusPlugInCollection.
L'oggetto ElementStylusPlugIn di è visibile e abilitato.