LEADTOOLS Multimedia (Leadtools.Multimedia assembly) Send comments on this topic. | Back to Introduction | Help Version 17.0.3.22
MouseDownEventArgs Constructor
See Also 
Leadtools.Multimedia Namespace > MouseDownEventArgs Class : MouseDownEventArgs Constructor



button
Value that identifies the button that was pressed to cause the event. The following are possible values: Value Meaning 1 left button 2 right button
shift
Value that indicates which of the SHIFT, CTRL, and ALT keys are down when the button specified in the Button argument is released. The following are possible values: Value Meaning 1 SHIFT key 2 CTRL key 4 ALT key 3 CTRL/SHIFT key 5 ALT/SHIFT key 6 CTRL/ALT key 7 CTRL/ALT/SHIFT key
x
The X coordinate of the mouse pointer relative to the origin of the client area of the control. The unit of measure is determined by ScaleMode property.
y
The Y coordinate of the mouse pointer relative to the origin of the client area of the control. The unit of measure is determined by ScaleMode property.
The MouseDownEventArgs object is the event arguments object for the MouseDownEventHandler. For more information, see MouseDownEventHandler

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal button As Short, _
   ByVal shift As Short, _
   ByVal x As Single, _
   ByVal y As Single _
)
Visual Basic (Usage)Copy Code
Dim button As Short
Dim shift As Short
Dim x As Single
Dim y As Single
 
Dim instance As New MouseDownEventArgs(button, shift, x, y)
C# 
public MouseDownEventArgs( 
   short button,
   short shift,
   float x,
   float y
)
C++/CLI 
public:
MouseDownEventArgs( 
   short button,
   short shift,
   float x,
   float y
)

Parameters

button
Value that identifies the button that was pressed to cause the event. The following are possible values: Value Meaning 1 left button 2 right button
shift
Value that indicates which of the SHIFT, CTRL, and ALT keys are down when the button specified in the Button argument is released. The following are possible values: Value Meaning 1 SHIFT key 2 CTRL key 4 ALT key 3 CTRL/SHIFT key 5 ALT/SHIFT key 6 CTRL/ALT key 7 CTRL/ALT/SHIFT key
x
The X coordinate of the mouse pointer relative to the origin of the client area of the control. The unit of measure is determined by ScaleMode property.
y
The Y coordinate of the mouse pointer relative to the origin of the client area of the control. The unit of measure is determined by ScaleMode property.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also