StylusButtonState Enumeration

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Represents the state of a StylusButton.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

Public Enumeration StylusButtonState

Member nameDescription
Down

The button is pressed down.

Up

The button is up.

The following example demonstrates how to determine the state of a StylusButton.

' Get the state of the StylusButton
Select Case myStylusButton.StylusButtonState
    Case StylusButtonState.Down
        textbox1.AppendText("StylusButton.State: Down" + vbCrLf)
    Case Else ' StylusButtonState.Up
        textbox1.AppendText("StylusButton.State: Up" + vbCrLf)
End Select

.NET Framework
Available since 3.0
Return to top
Show: