MouseEventArgs(MouseButtons, Int32, Int32, Int32, Int32) Constructor

Definition

Inicializa una nueva instancia de la clase MouseEventArgs.Initializes a new instance of the MouseEventArgs class.

public:
 MouseEventArgs(System::Windows::Forms::MouseButtons button, int clicks, int x, int y, int delta);
public MouseEventArgs (System.Windows.Forms.MouseButtons button, int clicks, int x, int y, int delta);
new System.Windows.Forms.MouseEventArgs : System.Windows.Forms.MouseButtons * int * int * int * int -> System.Windows.Forms.MouseEventArgs
Public Sub New (button As MouseButtons, clicks As Integer, x As Integer, y As Integer, delta As Integer)

Parameters

button
MouseButtons

Uno de los valores de MouseButtons que indica el botón del mouse que se ha presionado.One of the MouseButtons values that indicate which mouse button was pressed.

clicks
Int32

Número de veces que se presionó un botón del mouse.The number of times a mouse button was pressed.

x
Int32

Coordenada x de un clic del mouse, en píxeles.The x-coordinate of a mouse click, in pixels.

y
Int32

Coordenada y de un clic del mouse, en píxeles.The y-coordinate of a mouse click, in pixels.

delta
Int32

Recuento con signo del número de pasos de trinquete que ha girado la rueda del mouse.A signed count of the number of detents the wheel has rotated.

Applies to

See also