A first-class object, bit masks and query functions for the DragEventArgs.KeyState and QueryContinueDragEventArgs.KeyState properties as defined in the msdn documentation.
These aren't formalised anywhere in the .NET framework.
| Public Types | |
| enum | Mask { LeftMouseButton = 1, RightMouseButton = 2, Shift = 4, Ctrl = 8, MiddleMouseButton = 16, Alt = 32 } | 
| Mask values taken from DragEventArgs.KeyState and QueryContinueDragEventArgs.KeyState properties as specified in the msdn documentation.More... | |
| Public Member Functions | |
| KeyState (int keyStateBits) | |
| Constructor. | |
| override bool | Equals (Object other) | 
| Determine if this 
KeyState is equal to another 
KeyState value. | |
| override int | GetHashCode () | 
| Get a hash code for this 
KeyState value. | |
| Properties | |
| int | Bits [get] | 
| The encapsulated 
KeyState bit field. | |
| bool | LeftMousePressed [get] | 
| Is the left mouse button pressed? | |
| bool | RightMousePressed [get] | 
| Is the right mouse button pressed? | |
| bool | MiddleMousePressed [get] | 
| Is the middle mouse button pressed? | |
| bool | ShiftPressed [get] | 
| Is the Shift key pressed? | |
| bool | CtrlPressed [get] | 
| Is the Ctrl key pressed? | |
| bool | AltPressed [get] | 
| Is the Alt key pressed? | |
Mask values taken from DragEventArgs.KeyState and QueryContinueDragEventArgs.KeyState properties as specified in the msdn documentation.
| CSharpUtilities::KeyState::KeyState | ( | int | keyStateBits | ) | [inline] | 
Constructor.
Takes the bitfield from DragEventArgs.KeyState or QueryContinueDragEventArgs.KeyState.
| keyStateBits | The bitfield from DragEventArgs.KeyState or QueryContinueDragEventArgs.KeyState. | 
| override bool CSharpUtilities::KeyState::Equals | ( | Object | other | ) | [inline] | 
| override int CSharpUtilities::KeyState::GetHashCode | ( | ) | [inline] | 
Get a hash code for this KeyState value.
| int CSharpUtilities::KeyState::Bits [get] | 
The encapsulated KeyState bit field.
| bool
CSharpUtilities::KeyState::LeftMousePressed [get] | 
Is the left mouse button pressed?
| bool
CSharpUtilities::KeyState::RightMousePressed [get] | 
Is the right mouse button pressed?
| bool
CSharpUtilities::KeyState::MiddleMousePressed [get] | 
Is the middle mouse button pressed?
| bool CSharpUtilities::KeyState::ShiftPressed [get] | 
Is the Shift key pressed?
| bool CSharpUtilities::KeyState::CtrlPressed [get] | 
Is the Ctrl key pressed?
| bool CSharpUtilities::KeyState::AltPressed [get] | 
Is the Alt key pressed?