Skip to main content
All docs
V24.1

QueryCursorAction Enum

Lists actions that make the map control switch the cursor image.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

public enum QueryCursorAction

Members

Name Description Image
Default

A user does not perform any actions on the map.

The Arrow cursor.

SizeNESW

A user uses the top-right or bottom-left corner of a shape’s bounding box to resize the shape in the editor‘s Transform mode.

The SizeNESW cursor.

SizeNS

A user uses the top or bottom border of a shape’s bounding box to resize the shape in the editor‘s Transform mode.

The SizeNS cursor.

SizeNWSE

A user uses the top-left or bottom-right corner of a shape’s bounding box to resize the shape in the editor‘s Transform mode.

The SizeNWSE cursor.

SizeWE

A user uses the left or right border of a shape’s bounding box to resize the shape in the editor‘s Transform mode.

The SizeWE cursor.

SizeAll

A map shape is scaled in four directions (north, south, east, and west).

The SizeALL cursor.

HyperlinkHover

A user hovers the mouse pointer over a hyperlink.

The Hover Hyperlink cursor.

NavigationUIHover

A user hovers the mouse pointer over an element on the navigation panel.

The Hover cursor.

NavigationUIPressed

A user moves a track bar’s thumb on the navigation panel.

The Press cursor.

MoveMap

A user scrolls the map.

The Move Map cursor.

MoveMiniMap

A user scrolls the mini map.

The Move Mini Map cursor.

RotateMap

A user rotates the map.

The Rotate cursor.

EditorAddPoint

A user hovers over a map shape outline and can add a new point to the shape in the editor‘s Edit mode.

The Add Point cursor.

EditorMovePoint

A user hovers over a map shape point and can move it in the editor‘s Edit mode.

The MovePoint cursor.

EditorRotation

A user hovers over a map shape’s rotation handle and can rotate the shape in the editor‘s Transform mode.

The Rotation cursor.

EditorMoveItem

A user hovers over a map shape and can move the item in the editor‘s Transform mode.

The Move Item cursor.

Restore

Assigns the previously displayed image to the cursor.

Related API Members

The following properties accept/return QueryCursorAction values:

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