This document is archived and information here might be outdated.  Recommended version.


IAnnotationConstructor.OnKeyDown Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Editor)  

IAnnotationConstructor.OnKeyDown Method

Called when a key is pressed.

[Visual Basic .NET]
Public Sub OnKeyDown ( _
    ByVal keyState As Integer, _
    ByVal shift As Integer _
)
[C#]
public void OnKeyDown (
    int keyState,
    int shift
);

Product Availability

Available with ArcGIS Desktop.

Remarks

OnKeyDown may be used to listen for one or more keys being depressed and expose additional functionality.  All annotation constructors have a set of keys that they respond to.  See the list of hotkeys in the online help.  Each constructor implements the 'W' key functionality to derive the text from the first feature under the cursor; this functionality is available to new annotation constructors.

See Also

IAnnotationConstructor Interface