Skip to main content
A newer version of this page is available. .
All docs
V21.2

QueryCursorEventArgs.Cursor Property

Gets or sets the cursor displayed in the map control.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.2.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Map

Declaration

public Cursor Cursor { get; set; }

Property Value

Type Description
Cursor

A Cursor object that specifies the cursor.

Remarks

The following example shows how to substitute the cursor displayed when a user scrolls the map with the Arrow cursor:

using DevExpress.XtraMap;
using System;
using System.Windows.Forms;

namespace MapQueryCursor {
    public partial class Form1 : Form {
        private void Form1_Load(object sender, EventArgs e) {
            //...
            mapControl1.QueryCursor += OnMapQueryCursor;
        }
        private void OnMapQueryCursor(object sender, QueryCursorEventArgs e) {
            if (e.Action == QueryCursorAction.MoveMap) {
                e.Cursor = Cursors.Arrow;
            }
        }
    }
}
See Also