Language

Mouse.ButtonsSwapped プロパティ

定義

マウスの左右のボタンの機能がスワップされたかどうかを示す Boolean を取得します。

public:
 property bool ButtonsSwapped { bool get(); };
public bool ButtonsSwapped { get; }
member this.ButtonsSwapped : bool
Public ReadOnly Property ButtonsSwapped As Boolean

プロパティ値

値を持つ Boolean は、マウスの左右のボタンの機能がスワップされている場合は True 。それ以外の場合は False。

例外

コンピューターにマウスがインストールされていません。

例

この例では、 My.Computer.Mouse.ButtonsSwapped プロパティを使用して、マウスの左右のボタンの機能がスワップされているかどうかを確認します。

If My.Computer.Mouse.ButtonsSwapped Then
    MsgBox("Functionality of the mouse buttons is swapped.")
Else
    MsgBox("Default functionality of the mouse buttons.")
End If

注釈

My.Computer.Mouse.ButtonsSwapped プロパティ:

  • MouseButtonsSwapped プロパティと同様の機能を提供します。

  • コードを実行するコンピューターに関する情報を提供します。

プロジェクトの種類別の可用性

プロジェクト タイプ 在庫有り
Windows アプリケーション Yes
クラス ライブラリ Yes
コンソール アプリケーション Yes
Windows コントロール ライブラリ Yes
Web コントロール ライブラリ いいえ
Windows サービス Yes
ウェブサイト いいえ

適用対象

こちらもご覧ください