StylusDevice.Inverted 屬性

定義

取得值,這個值表示是否正在使用手寫筆的次要提示。Gets a value that indicates whether the secondary tip of the stylus is in use.

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

屬性值

如果正在使用手寫筆的次要提示,則為 true,否則為 falsetrue if the secondary tip of the stylus is in use; otherwise, false. 預設為 falseThe default is false.

範例

下列範例會示範Inverted屬性。The following example demonstrates the Inverted property.

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

適用於