Back to Devexpress

RepositoryItem.DragEnter Event

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitem-d3ebdebb.md

latest3.4 KB
Original Source

RepositoryItem.DragEnter Event

Fires when a dragged object enters the editor’s area.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DXCategory("Events")]
public event DragEventHandler DragEnter
vb
<DXCategory("Events")>
Public Event DragEnter As DragEventHandler

Event Data

The DragEnter event's data class is DragEventArgs. The following properties provide information specific to this event:

PropertyDescription
AllowedEffectGets which drag-and-drop operations are allowed by the originator (or source) of the drag event.
DataGets the IDataObject that contains the data associated with this event.
EffectGets or sets the target drop effect in a drag-and-drop operation.
KeyStateGets the current state of the SHIFT, CTRL, and ALT keys, as well as the state of the mouse buttons.
XGets the x-coordinate of the mouse pointer, in screen coordinates.
YGets the y-coordinate of the mouse pointer, in screen coordinates.

Remarks

The DragEnter event is designed to handle the dragging process. This event fires when the mouse pointer enters the control’s client area provided that dragging is being performed. This event is likely to be used if dropping can be performed anywhere within the control (and may be prohibited depending upon the dragged data). The allowed drop effect must be set using the event parameter’s Effect property. If dropping is allowed in particular areas within the control, handle the RepositoryItem.DragOver event.

See Also

DragOver

DragLeave

RepositoryItem Class

RepositoryItem Members

DevExpress.XtraEditors.Repository Namespace