This documentation is archived and is not being maintained.

MouseEventArgs Constructor

Initializes a new instance of the MouseEventArgs class.

[Visual Basic]
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(
   MouseButtons button,
 int clicks,
 int x,
 int y,
 int delta
);
[C++]
public: MouseEventArgs(
   MouseButtons button,
 int clicks,
 int x,
 int y,
 int delta
);
[JScript]
public function MouseEventArgs(
   button : MouseButtons,
 clicks : int,
 x : int,
 y : int,
 delta : int
);

Parameters

button
One of the MouseButtons values indicating which mouse button was pressed.
clicks
The number of times a mouse button was pressed.
x
The x-coordinate of a mouse click, in pixels.
y
The y-coordinate of a mouse click, in pixels.
delta
A signed count of the number of detents the wheel has rotated.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

MouseEventArgs Class | MouseEventArgs Members | System.Windows.Forms Namespace | MouseButtons | Delta

Show: