property Layer.OnDrag as OnDragLayerEnum
Indicates the action to be performed when the user drags the layer.

TypeDescription
OnDragLayerEnum An OnDragLayerEnum expression that specifies the operation to perform when the user clicks and drags the layer.
By default, the OnDrag property is exDoNothing, so nothing is happen if the user clicks the layer. The Change event occurs when the layer's value property is changed. The DragStart / Drag / DragEnd events notify your application when a layer is dragged. The ShowHandCursor property returns or sets a value that indicates whether the hand cursor is shown when it hovers a visible / selectable / dragable layer. The Clip property gets access to the layer's clipping object. The Value property of the Layer has effect only if the OnDrag property is not exDoNothing. The Selectable property returns or sets a value that indicates whether the layer is selectable. 

Currently, any layer supports any of the following operations:

The control fires the drag events in the following order:

You can use the Debug property of the DragInfo object to display debugging information during dragging.