---
title: "MouseEventArgs Constructor (MouseButtons, Int32, Single, Single)"
canonical: https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_WinControls_MouseEventArgs_ctor_4_d3f7c263.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# MouseEventArgs Constructor (MouseButtons, Int32, Single, Single)
 
Create and initializes a new [MouseEventArgs](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_MouseEventArgs.htm.md) object.
 
**Namespace:** [Aurigma.GraphicsMill.WinControls](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
 **Assembly:** Aurigma.GraphicsMill.WinControls (in Aurigma.GraphicsMill.WinControls.dll)
 
## Syntax
  
```
Public Sub New ( _button As MouseButtons, _clicks As Integer, _x As Single, _y As Single _
)
```
 
```csharp
public MouseEventArgs(MouseButtons button,int clicks,float x,float y
)
```
 
### Parameters
 
 - button
     - Type: [System.Windows.Forms.MouseButtons](http://msdn2.microsoft.com/en-us/53t1tw1k)
One of the [MouseButtons](http://msdn2.microsoft.com/en-us/53t1tw1k) values.

 - clicks
     - Type: [System.Int32](http://msdn2.microsoft.com/en-us/td2s409d)
The number of times the mouse button was pressed and released.

 - x
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
The x-coordinate of the mouse, in pixels.

 - y
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
The y-coordinate of the mouse, in pixels.
   
## See Also

### Reference

- [MouseEventArgs Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_WinControls_MouseEventArgs.htm.md)
- [MouseEventArgs Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_WinControls_MouseEventArgs_ctor.htm.md)
- [Aurigma.GraphicsMill.WinControls Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_WinControls.htm.md)
