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

BeforeDragNodeEventArgs.PreviewImage Property

Gets or sets the image displayed near the mouse cursor during a drag-and-drop operation.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

public Image PreviewImage { get; set; }

#Property Value

Type Description
Image

An Image object specifying the image displayed near the mouse cursor during a drag-and-drop operation.

#Remarks

By default, a preview image of the nodes being dragged is displayed near the mouse cursor during a drag-and-drop operation. See an example below.

BeforeDragNodeEventArgs_PreviewImage

Using the PreviewImage property, you can provide a custom preview image that replaces the default image.

See Also