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

BarAndDockingController.DragCursors Property

Gets an array of cursors that can be used for drag operations on links.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v19.1.dll

Declaration

[Browsable(false)]
public virtual ArrayList DragCursors { get; }

Property Value

Type Description
ArrayList

An ArrayList of Cursor objects.

Remarks

If a bar’s BarOptions.DisableCustomization property is set to false, an end-user can customize links within the bar (move and copy between bars, add from the Customization Window, resize edit links) using drag-and-drop operations. This functionality is enabled if the Customization Window is opened or if the ALT key is pressed while dragging links.

The DragCursors property specifies an array of cursors for different states of drag-and-drop operations. The default images are presented in the following table. You can replace any image if the default one does not suit your needs.

Element Index Image Description
0 Bars3_DragCursor_0 Indicates that the link being dragged can be dropped at the current position
1 Bars3_DragCursor_1 Indicates that a copy of the link will be created if it is dropped at the current position. The user can press the CTRL key while dragging links to copy them instead of moving them to a new position.
2 Bars3_DragCursor_2 Indicates that the link cannot be dropped.
3 Bars3_DragCursor_3 Indicates that the link can be resized.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DragCursors 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.

See Also