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

适用于