DragInfo object
The DragInfo object holds information about dragging operation. Currently, the DragInfo object can be accessed through the drag events. Any layer on the control supports drag operations like moving, rotation, or combination of them, when the user clicks and drags a layer. The drag operation automatically starts when the user clicks a visible, selectable and dragable layer. The OnDrag property indicates the action to be performed when the user drags the layer ( dragable ).  The Visible property shows or hides a specific layer (visible). The Selectable property returns or sets a value that indicates whether the layer is selectable. The Change event occurs when the layer's value is changed.

The control fires the drag events in the following order:

The following screen shot shows a few information ( angle, offset, values, ... ) you can get during dragging operation:

The DragInfo object supports the following properties and methods:

NameDescription
ButtonSpecifies the button that initiated the drag operation.
ClockwiseIndicates if the rotation is clockwise or anticlockwise.
CumulativeRotateAngleIndicates the cumulative rotation angle.
CurrentXIndicates the current x-position of the cursor, while dragging the layer.
CurrentYIndicates the current y-position of the cursor, while dragging the layer.
DebugSpecifies debugging information to be shown while dragging the layers.
DeltaReturns the distance between clicking and current points.
DeltaAngleReturns the rotation angle.
DeltaXReturns the offset on the x-coordinate of the the current drag operation.
DeltaYReturns the offset on the y-coordinate of the the current drag operation.
LayerSpecifies the layer being dragged.
RotateAngleValidValidates the rotation angle of the layer, during dragging.
UserDataIndicates any extra data associated with the dragging data.
XIndicates the x-position of the cursor, when the drag operation starts.
YIndicates the y-position of the cursor, when the drag operation starts.