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



keyCode
The short integer value identifying which key was pressed.
shiftState
The short integer shift state flags. 0x0001 = Shift is pressed, 0x0002 = Ctrl is pressed, and 0x0004 = Alt is pressed
The object constructor for the KeyDownEventArgs object.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal keyCode As Short, _
   ByVal shiftState As Short _
)
Visual Basic (Usage)Copy Code
Dim keyCode As Short
Dim shiftState As Short
 
Dim instance As New KeyDownEventArgs(keyCode, shiftState)
C# 
public KeyDownEventArgs( 
   short keyCode,
   short shiftState
)
C++/CLI 
public:
KeyDownEventArgs( 
   short keyCode,
   short shiftState
)

Parameters

keyCode
The short integer value identifying which key was pressed.
shiftState
The short integer shift state flags. 0x0001 = Shift is pressed, 0x0002 = Ctrl is pressed, and 0x0004 = Alt is pressed

Remarks

This constructer is called internally when an KeyDownEvent occurs.

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