StylusButtonState 列挙型
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
StylusButtonの状態を表します。
public enum class StylusButtonState
public enum StylusButtonState
type StylusButtonState =
Public Enum StylusButtonState
- 継承
フィールド
| 名前 | 値 | 説明 |
|---|---|---|
| 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