officefileapi-devexpress-dot-xtrarichedit-dot-richeditbehavioroptions-26710b5a.md
Specifies whether or not the Drop operation is permitted.
Namespace : DevExpress.XtraRichEdit
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
[DefaultValue(DocumentCapability.Default)]
public virtual DocumentCapability Drop { get; set; }
<DefaultValue(DocumentCapability.Default)>
Public Overridable Property Drop As DocumentCapability
| Type | Default | Description |
|---|---|---|
| DocumentCapability | Default |
A DocumentCapability enumeration value.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
You can access this nested property as listed below:
| Object Type | Path 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
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
richEditControl1.Document.EndUpdate()
richEditControl1.Options.Behavior.Drop = DevExpress.XtraRichEdit.DocumentCapability.Enabled
richEditControl1.Focus()
See Also