Class MouseDragEventArgs
Event arguments for mouse drag events
public sealed class MouseDragEventArgs : EventArgs
- Inheritance
-
MouseDragEventArgs
- Inherited Members
Constructors
MouseDragEventArgs(Position, Position, int, int, MouseButtonType, bool, bool, bool)
Initializes a new instance of MouseDragEventArgs
public MouseDragEventArgs(Position startPosition, Position currentPosition, int deltaX, int deltaY, MouseButtonType button, bool shift, bool alt, bool ctrl)
Parameters
startPosition
PositionThe position where the drag started
currentPosition
PositionThe current position during drag
deltaX
intThe change in X position
deltaY
intThe change in Y position
button
MouseButtonTypeThe mouse button being dragged
shift
boolWhether Shift was held
alt
boolWhether Alt was held
ctrl
boolWhether Ctrl was held
Properties
Alt
Whether Alt was held during the drag
public bool Alt { get; }
Property Value
Button
The mouse button being used for dragging
public MouseButtonType Button { get; }
Property Value
Ctrl
Whether Ctrl was held during the drag
public bool Ctrl { get; }
Property Value
CurrentPosition
The current position during the drag
public Position CurrentPosition { get; }
Property Value
DeltaX
The change in X position since the last drag event
public int DeltaX { get; }
Property Value
DeltaY
The change in Y position since the last drag event
public int DeltaY { get; }
Property Value
Shift
Whether Shift was held during the drag
public bool Shift { get; }
Property Value
StartPosition
The position where the drag started
public Position StartPosition { get; }