windowsforms-devexpress-dot-utils-dot-dragdrop-dot-dxdrageventargs-d20cbe9f.md
Gets the mouse cursor’s position.
Namespace : DevExpress.Utils.DragDrop
Assembly : DevExpress.Utils.v25.2.dll
NuGet Packages : DevExpress.Utils, DevExpress.Wpf.Core
public Point Location { get; }
Public ReadOnly Property Location As Point
| Type | Description |
|---|---|
| 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
return;
var destNode = GetDestNode(e.Location);
int destIndex = CalcDestNodeIndex(e, destNode);
drag-drop-grid-rows-to-treelist/VB/DragAndDropRows/Form1.vb#L69
If indexes Is Nothing Then Return
Dim destNode = GetDestNode(e.Location)
Dim destIndex As Integer = CalcDestNodeIndex(e, destNode)
See Also