Back to Devexpress

FlowLayoutProperties.ItemDragMode Property

windowsforms-devexpress-dot-xtrabars-dot-docking2010-dot-views-dot-widget-dot-flowlayoutproperties-364197a7.md

latest2.4 KB
Original Source

FlowLayoutProperties.ItemDragMode Property

Gets or sets the widget drag mode for this WidgetView.

Namespace : DevExpress.XtraBars.Docking2010.Views.Widget

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(ItemDragMode.Move)]
[XtraSerializableProperty(XtraSerializationFlags.DefaultValue)]
public ItemDragMode ItemDragMode { get; set; }
vb
<DefaultValue(ItemDragMode.Move)>
<XtraSerializableProperty(XtraSerializationFlags.DefaultValue)>
Public Property ItemDragMode As ItemDragMode

Property Value

TypeDefaultDescription
DevExpress.XtraBars.Docking2010.Views.Widget.ItemDragModeMove

A DevExpress.XtraBars.Docking2010.Views.Widget.ItemDragMode enumerator value that specifies the widget drag mode for this WidgetView.

|

Remarks

Widgets within a Flow Layout WidgetView can be moved in two ways, depending on the ItemDragMode property value.

  • Move mode (default behavior) - end-user can drop a widget before or after any other widget. This causes other widgets to slide forward or backward to create space for the dragged widget.
  • Swap mode - end-user can drop a widget upon another widget, which will cause these widgets to swap their positions.

See the Widget View topic to learn more.

See Also

Widget View

FlowLayoutProperties Class

FlowLayoutProperties Members

DevExpress.XtraBars.Docking2010.Views.Widget Namespace