System.Windows.Forms.ToolStrip.AllowItemReorder Property

Gets or sets a value indicating whether drag-and-drop and item reordering are handled privately by the System.Windows.Forms.ToolStrip class.

Syntax

[System.ComponentModel.DefaultValue(false)]
public bool AllowItemReorder { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Set the ToolStrip.AllowDrop property to true and set the ToolStrip.AllowItemReorder property to false to respond to drag-and-drop behavior you have defined in the Control.DragEnter, Control.DragLeave, and Control.DragDrop events.

Set ToolStrip.AllowDrop to false and set ToolStrip.AllowItemReorder to true to cause the System.Windows.Forms.ToolStrip class to handle drag-and-drop and item reordering automatically. Set ToolStrip.AllowItemReorder to true for two System.Windows.Forms.ToolStrip objects to allow dragging of items from one System.Windows.Forms.ToolStrip to the other. To enable the default drag-and-drop, the ALT key must be pressed during the drag operation.

Setting both ToolStrip.AllowDrop and ToolStrip.AllowItemReorder to true throws an exception.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0