Skip to content

KeyEventInteractionArguments

Namespace: ThinkGeo.UI.Wpf

Represents key event arguments when interacting with the map object.

public class KeyEventInteractionArguments

Inheritance ObjectKeyEventInteractionArguments

Properties

Key

Gets or sets the keyboard key associated with the interaction.

public Key Key { get; set; }

Property Value

Key

IsCtrlKeyPressed

Gets or sets a value indicating whether the CTRL key was pressed.

public bool IsCtrlKeyPressed { get; set; }

Property Value

Boolean

IsShiftKeyPressed

Gets or sets a value indicating whether the SHIFT key was pressed.

public bool IsShiftKeyPressed { get; set; }

Property Value

Boolean

IsAltKeyPressed

Gets or sets a value indicating whether the ALT key was pressed.

public bool IsAltKeyPressed { get; set; }

Property Value

Boolean

CurrentExtent

Gets or sets the map extent visible when the key event occurred.

public RectangleShape CurrentExtent { get; set; }

Property Value

RectangleShape

CurrentScale

Gets or sets the current map scale at the time of the key event.

public double CurrentScale { get; set; }

Property Value

Double

Constructors

KeyEventInteractionArguments()

Initializes a new instance of the KeyEventInteractionArguments class with default values.

public KeyEventInteractionArguments()

KeyEventInteractionArguments(Key, Boolean, Boolean, Boolean)

Initializes a new instance of the KeyEventInteractionArguments class using the specified key state.

public KeyEventInteractionArguments(Key key, bool isCtrlKeyPressed, bool isShiftKeyPressed, bool isAltKeyPressed)

Parameters

key Key
The keyboard key associated with the interaction.

isCtrlKeyPressed Boolean
Whether the CTRL modifier was pressed.

isShiftKeyPressed Boolean
Whether the SHIFT modifier was pressed.

isAltKeyPressed Boolean
Whether the ALT modifier was pressed.