Share via


StylusDevice.Inverted 屬性

定義

取得值,這個值表示是否正在使用手寫筆的次要提示。

public:
 property bool Inverted { bool get(); };
public bool Inverted { get; }
member this.Inverted : bool
Public ReadOnly Property Inverted As Boolean

屬性值

如果正在使用手寫筆的次要提示,則為 true,否則為 false。 預設為 false

範例

下列範例示範 Inverted 屬性。

private void OnStylusMove(object sender, StylusEventArgs e)
{
    StylusDevice myStylusDevice = e.StylusDevice;

    if (myStylusDevice != null)
    {
        if (myStylusDevice.Inverted)
        {
            textbox1.Text = "stylus moves with eraser down";
        }
        else
        {
            textbox1.Text = "stylus moves with pen down";
        }
    }
}
Private Sub OnStylusMove(ByVal sender As Object, _
                         ByVal e As StylusEventArgs)

    Dim myStylusDevice As StylusDevice
    myStylusDevice = e.StylusDevice
    If myStylusDevice.Inverted = True Then
        textbox1.Text = "stylus moves with eraser down"
    Else
        textbox1.Text = "stylus moves with pen down"
    End If
End Sub

適用於