StylusButtonState 열거형

정의

StylusButton상태를 나타냅니다.

public enum class StylusButtonState
public enum StylusButtonState
type StylusButtonState = 
Public Enum StylusButtonState
상속
StylusButtonState

필드

Name Description
Up 0

단추가 위로 올라와 있습니다.

Down 1

단추를 아래로 눌렀습니다.

예제

다음 예제에서는 상태를 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

적용 대상