StylusButtonState Enum

Definisi

Mewakili status StylusButton.

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

Bidang

Down 1

Tombol ditekan ke bawah.

Up 0

Tombolnya sudah siap.

Contoh

Contoh berikut menunjukkan cara menentukan status 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

Berlaku untuk