Skip to main content
All docs
V24.2

QueryCursorEventArgs Class

Provides data for the QueryCursor event.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

Declaration

public class QueryCursorEventArgs :
    CancelEventArgs

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;
            }
        }
    }
}

Inheritance

Object
EventArgs
CancelEventArgs
QueryCursorEventArgs
See Also