Skip to content

KeyEventInteractionArguments

Namespace: ThinkGeo.Core

Represents key event arguments when interacting with the map object.

public class KeyEventInteractionArguments

Inheritance ObjectKeyEventInteractionArguments

Properties

Key

This property gets string indicates the key used in the key events.

public Key Key { get; set; }

Property Value

Key

IsCtrlKeyPressed

Gets a value indicating whether the CTRL key was pressed. true if the CTRL key was pressed; otherwise, false.

public bool IsCtrlKeyPressed { get; set; }

Property Value

Boolean

IsShiftKeyPressed

Gets a value indicating whether the SHIFT key was pressed. true if the SHIFT key was pressed; otherwise, false.

public bool IsShiftKeyPressed { get; set; }

Property Value

Boolean

IsAltKeyPressed

Gets a value indicating whether the ALT key was pressed. true if the ALT key was pressed; otherwise, false.

public bool IsAltKeyPressed { get; set; }

Property Value

Boolean

CurrentExtent

Gets or sets the current extent used in the MapControl.

public RectangleShape CurrentExtent { get; set; }

Property Value

RectangleShape

CurrentScale

Gets or sets the scale in the current status.

public double CurrentScale { get; set; }

Property Value

Double

Constructors

KeyEventInteractionArguments()

Constructor of KeyEventInteractionArguments class.

public KeyEventInteractionArguments()

Remarks:

If you use this constructor, you have to set its properties manually before use.

KeyEventInteractionArguments(Key, Boolean, Boolean, Boolean)

This is the constructor of this parameter by passing parameters.

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

Parameters

key Key
This parameters indicates the key string used in the events.

isCtrlKeyPressed Boolean
This parameter indicates the CTRIL key is pressed or not.

isShiftKeyPressed Boolean
This parameter indicates the SHIFT key is pressed or not.

isAltKeyPressed Boolean
This parameter indicates the ALT key is pressed or not.