MapBase.KeyPress Event
This documentation is no longer available on MSDN, however it is available as a CHM download.
When overridden in a derived class, occurs when the user presses a key on the keyboard.
Namespace: Microsoft.Maps.MapControl.Core
Assembly: Microsoft.Maps.MapControl (in Microsoft.Maps.MapControl.dll)
Usage
Syntax
'Declaration
Public Event KeyPress As EventHandler(Of MapKeyPressEventArgs)
public abstract event EventHandler<MapKeyPressEventArgs> KeyPress
public:
virtual event EventHandler<MapKeyPressEventArgs^>^ KeyPress {
void add (EventHandler<MapKeyPressEventArgs^>^ value) abstract;
void remove (EventHandler<MapKeyPressEventArgs^>^ value) abstract;
}
/** @event */
public abstract void add_KeyPress (EventHandler<MapKeyPressEventArgs> value)
/** @event */
public abstract void remove_KeyPress (EventHandler<MapKeyPressEventArgs> value)
Remarks
Note
This event occurs only once after the first KeyDown, even if the user holds the key down.
Platforms
Development Platforms
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Target Platforms
Change History
See Also
Reference
MapBase Class
MapBase Members
Microsoft.Maps.MapControl.Core Namespace