StylusButtonState Enum

Definitie

Vertegenwoordigt de status van een StylusButton.

public enum class StylusButtonState
public enum StylusButtonState
type StylusButtonState = 
Public Enum StylusButtonState
Overname
StylusButtonState

Velden

Name Waarde Description
Up 0

De knop is omhoog.

Down 1

De knop wordt ingedrukt.

Voorbeelden

In het volgende voorbeeld ziet u hoe u de status van een StylusButton.

// Get the state of the StylusButton
switch (myStylusButton.StylusButtonState)
{
    case StylusButtonState.Down:
        textbox1.AppendText("StylusButton.State: Down\n");
        break;

    default:  // StylusButtonState.Up
        textbox1.AppendText("StylusButton.State: Up\n");
        break;
}
' 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

Van toepassing op