StylusButton.StylusButtonState 속성

정의

스타일러스 단추의 상태를 가져옵니다.Gets the state of the stylus button.

public:
 property System::Windows::Input::StylusButtonState StylusButtonState { System::Windows::Input::StylusButtonState get(); };
public System.Windows.Input.StylusButtonState StylusButtonState { get; }
member this.StylusButtonState : System.Windows.Input.StylusButtonState
Public ReadOnly Property StylusButtonState As StylusButtonState

속성 값

StylusButtonState

StylusButtonState 값 중 하나입니다.One of the StylusButtonState values.

예제

다음 예제는 StylusButtonState 속성입니다.The following example demonstrates the StylusButtonState property.

// 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

적용 대상