Skip to main content

NavBarDragDropEventArgs(NavBarGroup, Int32, IDataObject, Int32, Int32, Int32, DragDropEffects, DragDropEffects) Constructor

Creates an instance of the NavBarDragDropEventArgs class.

Namespace: DevExpress.XtraNavBar.ViewInfo

Assembly: DevExpress.XtraNavBar.v24.2.dll

Declaration

public NavBarDragDropEventArgs(
    NavBarGroup group,
    int insertPosition,
    IDataObject data,
    int keyState,
    int x,
    int y,
    DragDropEffects allowedEffect,
    DragDropEffects effect
)

Parameters

Name Type Description
group NavBarGroup

A NavBarGroup object representing the group to which the dragged link is about to be or has been dropped.

insertPosition Int32

An integer value specifying the zero-based index of the group link, before which the dragged link is about to be or has been dropped.

data IDataObject

An object supporting the IDataObject interface which contains data associated with this event.

keyState Int32

An integer value indicating the current state of the SHIFT, CTRL, and ALT keys.

x Int32

An integer value specifying the x-coordinate of the mouse cursor in pixels.

y Int32

An integer value specifying the y-coordinate of the mouse cursor in pixels.

allowedEffect DragDropEffects

One of the DragDropEffects enumeration values specifying the drag-and-drop operation allowed by the source of the drag event.

effect DragDropEffects

One of the DragDropEffects enumeration values specifying the drag-and-drop operation allowed by the target of the drag event.

Remarks

The constructor initializes properties with values transmitted as parameters.

NavBarDragDropEventArgs objects are not designed to be created directly from your code. An instance of this class is created automatically each time the NavBarControl.NavDragDrop or NavBarControl.NavDragOver event fires.

See Also