次の方法で共有


MouseEventArgs コンストラクタ

MouseEventArgs クラスの新しいインスタンスを初期化します。

Public Sub New( _
   ByVal button As MouseButtons, _   ByVal clicks As Integer, _   ByVal x As Integer, _   ByVal y As Integer, _   ByVal delta As Integer _)
[C#]
public MouseEventArgs(
   MouseButtonsbutton,intclicks,intx,inty,intdelta);
[C++]
public: MouseEventArgs(
   MouseButtonsbutton,intclicks,intx,inty,intdelta);
[JScript]
public function MouseEventArgs(
   button : MouseButtons,clicks : int,x : int,y : int,delta : int);

パラメータ

  • button
    押されたマウス ボタンを示す MouseButtons 値の 1 つ。
  • clicks
    マウス ボタンが押された回数。
  • x
    マウスがクリックされた位置の x 座標 (ピクセル単位)。
  • y
    マウスがクリックされた位置の y 座標 (ピクセル単位)。
  • delta
    マウス ホイールの回転回数を表す符合付きの数値。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

MouseEventArgs クラス | MouseEventArgs メンバ | System.Windows.Forms 名前空間 | MouseButtons | Delta