This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControl4 Interface > IMapControl4.AutoKeyboardScrolling Property (ArcObjects .NET 10.4 SDK) |
Indicates whether keyboard scrolling is enabled.
[Visual Basic .NET] Public Property AutoKeyboardScrolling As Boolean
[C#] public bool AutoKeyboardScrolling {get; set;}
[C++]
HRESULT get_AutoKeyboardScrolling(
VARIANT_BOOL* Enabled
);
[C++]
HRESULT put_AutoKeyboardScrolling(
VARIANT_BOOL Enabled
);
[C++]
Parameters Enabled [out, retval] Enabled is a parameter of type VARIANT_BOOL Enabled [in] Enabled is a parameter of type VARIANT_BOOL
Determines whether the 'Home' (keyCode 36), 'End' (keyCode 35), 'Page Down' (keyCode 34), 'PageUp' (keyCode 33) and 'Arrow' (keyCode 37-40) keys on the keyboard can be used to pan around the control's display. This property is true by default.
Most development environments use the 'Arrow' keys to switch focus between the controls embedded in a form or container. In such environments the MapControl will not by default receive the 'Arrow' keys to pan the display. To ensure 'Arrow' keys are received by the MapControl the KeyIntercept property must be set to intercept the 'Arrow' keys in order to pan the display when AutoKeyboardScrolling is true.