Skip to main content
A newer version of this page is available. .

XtraTabbedMdiManager.AllowDragDrop Property

Gets or sets whether end-users can reorder pages by dragging their headers.

Namespace: DevExpress.XtraTabbedMdi

Assembly: DevExpress.XtraBars.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Navigation

Declaration

[DefaultValue(DefaultBoolean.Default)]
[DXCategory("Behavior")]
public virtual DefaultBoolean AllowDragDrop { get; set; }

Property Value

Type Default Description
DefaultBoolean Default

A DefaultBoolean enumeration value which specifies whether end-users can reorder pages by dragging their headers.

Available values:

Name Description
True

true. DefaultBoolean.True has a constant value of 0, while the standard true value corresponds to a value of 1. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

False

false. DefaultBoolean.False has a constant value of 1, while the standard false value corresponds to a value of 0. In Visual Basic, do not use implicit conversion of Boolean values to DefaultBoolean, and vice versa, as the conversion may produce incorrect results.

Default

The default behavior determined by the control’s logic.

Remarks

If the AllowDragDrop property is set to Default or True, an end-user can use drag-and-drop to rearrange tabs. However, in this case, it is not possible to drag-and-drop other objects onto the form’s client region, occupied by the tabs. The form’s drag-and-drop events will not raise, as they are handled and suppressed by the XtraTabbedMdiManager.

If the AllowDragDrop property is set to False, tab drag-and-drop is disabled and the form’s drag-and-drop events are not suppressed.

See Also