StylusPlugIn.Enabled Propriedade

Definição

Obtém ou define se o StylusPlugIn está ativo.

public:
 property bool Enabled { bool get(); void set(bool value); };
public bool Enabled { get; set; }
member this.Enabled : bool with get, set
Public Property Enabled As Boolean

Valor de Propriedade

true se o StylusPlugIn for ativo; caso contrário, false. A predefinição é true.

Exemplos

O exemplo seguinte verifica o valor da Enabled propriedade no OnEnabledChanged método.

protected override void OnEnabledChanged()
{
    base.OnEnabledChanged();

    if (this.Enabled)
    {
        MessageBox.Show("The StylusPlugin is enabled.");
    }
    else
    {
        MessageBox.Show("The StylusPlugin is not enabled.");
    }
}
Protected Overrides Sub OnEnabledChanged()

    MyBase.OnEnabledChanged()

    If Me.Enabled Then
        MessageBox.Show("The StylusPlugin is enabled.")
    Else
        MessageBox.Show("The StylusPlugin is not enabled.")
    End If

End Sub

Observações

Utilização de Texto XAML

Esta propriedade não é normalmente usada em XAML.

Aplica-se a