Skip to main content

WinExplorerView.GetDragItemInfo() Method

Retrieves information about the current position of the dragged WinExplorerView item.

Namespace: DevExpress.XtraGrid.Views.WinExplorer

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

public WinExplorerViewDragItemInfo GetDragItemInfo()

Returns

Type Description
DevExpress.XtraGrid.Views.WinExplorer.WinExplorerViewDragItemInfo

A WinExplorerViewDragItemInfo object that stores information about the current position of the dragged WinExplorerView item.

Remarks

Call the GetDragItemInfo method inside events that fire during item drag-and-drop operations (e.g., the Control.DragDrop event) to retrieve a WinExplorerViewDragItemInfo object. This object provides access to the following properties:

  • HoveredItemInfo

    A regular WinExplorerItemViewInfo object that stores information on the currently hovered WinExplorerView item.

  • DragPosition

    Gets or sets whether the dragged item will be placed before or after the hovered element when a user releases a mouse button.

If you implement item dragging in WinExplorerView, set the WinExplorerViewOptionsView.ShowDropMark property to true to provide the visual drop feedback.

See Also