StylusButtonState Enumeration


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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

The button is pressed down.


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