Back to Devexpress

RichEditBehaviorOptions.Drop Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditbehavioroptions-26710b5a.md

latest3.6 KB
Original Source

RichEditBehaviorOptions.Drop Property

Specifies whether or not the Drop operation is permitted.

Namespace : DevExpress.XtraRichEdit

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(DocumentCapability.Default)]
public virtual DocumentCapability Drop { get; set; }
vb
<DefaultValue(DocumentCapability.Default)>
Public Overridable Property Drop As DocumentCapability

Property Value

TypeDefaultDescription
DocumentCapabilityDefault

A DocumentCapability enumeration value.

|

Available values:

NameDescription
Default

The value is determined by the current setting. The default value is automatically set if it is not explicitly specified.

| | Disabled |

The feature is not allowed and the corresponding commands are shown disabled.

| | Enabled |

The feature is available and the corresponding commands are shown enabled.

| | Hidden |

The feature is not available and the corresponding commands are hidden.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Drop
RichEditControlOptionsBase

.Behavior .Drop

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Drop property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-rich-drag-and-drop-gridview-cell-data/CS/DragDropExample/Form1.cs#L99

csharp
richEditControl1.Document.EndUpdate();
richEditControl1.Options.Behavior.Drop = DevExpress.XtraRichEdit.DocumentCapability.Enabled;
richEditControl1.Focus();

winforms-richedit-rich-drag-and-drop-gridview-cell-data/VB/DragDropExample/Form1.vb#L86

vb
richEditControl1.Document.EndUpdate()
richEditControl1.Options.Behavior.Drop = DevExpress.XtraRichEdit.DocumentCapability.Enabled
richEditControl1.Focus()

See Also

Drag

RichEditBehaviorOptions Class

RichEditBehaviorOptions Members

DevExpress.XtraRichEdit Namespace