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
startPositionPositionThe position where the drag started
currentPositionPositionThe current position during drag
deltaXintThe change in X position
deltaYintThe change in Y position
buttonMouseButtonTypeThe mouse button being dragged
shiftboolWhether Shift was held
altboolWhether Alt was held
ctrlboolWhether 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; }