Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

NavBarControl.GetDragDropFlags() Method

Returns a set of flags which specify the control’s drag and drop behavior.

Namespace: DevExpress.XtraNavBar

Assembly: DevExpress.XtraNavBar.v24.2.dll

NuGet Package: DevExpress.Win

#Declaration

public virtual NavBarDragDrop GetDragDropFlags()

#Returns

Type Description
NavBarDragDrop

A set of NavBarDragDrop enumeration values specifying the control’s drag and drop behavior.

#Remarks

The GetDragDropFlags method returns the default drag and drop settings exposed by the NavBarControl. These settings can be changed via the NavBarControl.DragDropFlags property. If the NavBarControl.DragDropFlags property contains the NavBarDragDrop.Default flag, all the other flags are ignored. In this case, the default drag and drop behavior will be as if the NavBarDragDrop.AllowDrag and NavBarDragDrop.AllowDrop flags are set. The GetDragDropFlags function will return the combination of these flags.

If the NavBarControl.DragDropFlags property does not contain the NavBarDragDrop.Default option, the drag and drop behavior will be determined by the NavBarControl.DragDropFlags settings and the GetDragDropFlags method will return its value.

For each group you can override the default drag and drop behavior via its NavBarGroup.DragDropFlags property.

See Also