Back to Devexpress

DXDragEventArgs.Location Property

windowsforms-devexpress-dot-utils-dot-dragdrop-dot-dxdrageventargs-d20cbe9f.md

latest2.3 KB
Original Source

DXDragEventArgs.Location Property

Gets the mouse cursor’s position.

Namespace : DevExpress.Utils.DragDrop

Assembly : DevExpress.Utils.v25.2.dll

NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core

Declaration

csharp
public Point Location { get; }
vb
Public ReadOnly Property Location As Point

Property Value

TypeDescription
Point

A Point structure that specifies the mouse pointer’s position.

|

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

drag-drop-grid-rows-to-treelist/CS/DragAndDropRows/Form1.cs#L71

csharp
return;
var destNode = GetDestNode(e.Location);
int destIndex = CalcDestNodeIndex(e, destNode);

drag-drop-grid-rows-to-treelist/VB/DragAndDropRows/Form1.vb#L69

vb
If indexes Is Nothing Then Return
Dim destNode = GetDestNode(e.Location)
Dim destIndex As Integer = CalcDestNodeIndex(e, destNode)

See Also

DXDragEventArgs Class

DXDragEventArgs Members

DevExpress.Utils.DragDrop Namespace