Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RichEditControl.DragDropMode Property

Gets or sets the drag-and-drop mode which is active in the RichEditControl.

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.XtraRichEdit.v24.2.dll

NuGet Package: DevExpress.Win.RichEdit

#Declaration

[DefaultValue(DragDropMode.Standard)]
[DXCategory("Behavior")]
public DragDropMode DragDropMode { get; set; }

#Property Value

Type Default Description
DragDropMode Standard

A DragDropMode enumeration value.

Available values:

Name Description
Standard

This mode is suitable for single-thread applications. If this mode is enabled, all Drag~ events of the RichEditControl are correctly raised when objects are dragged and dropped.

Manual

This mode is suitable for mutli-thread applications, when no Drag~ events of the RichEditControl can be raised.

#Remarks

To enable RichEditControl’s drag-and-drop operation in a Multi Threaded Apartment (MTA), the DragDropMode property value should be set to DragDropMode.Manual. In this case, drag-and-drop events such as DragEnter, DragLeave, DragOver and DragDrop are not raised.

Note

The Defauilt value of DragDropMode (the DragDropMode.Standard) in MTA state results in application failure.

See Also