StylusButtonState 列挙型

定義

StylusButtonの状態を表します。

public enum class StylusButtonState
public enum StylusButtonState
type StylusButtonState = 
Public Enum StylusButtonState
継承
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

適用対象