Events2::TextDocumentKeyPressEvents Property (TextDocument^)
Visual Studio 2015
Gets an event object which can be used to find key press events within a text editor.
Assembly: EnvDTE80 (in EnvDTE80.dll)
property TextDocumentKeyPressEvents^ default[ TextDocument^ TextDocument = null ] { TextDocumentKeyPressEvents^ get(TextDocument^ TextDocument = null); }
Parameters
- TextDocument
-
Type:
EnvDTE::TextDocument^
Optional. A TextDocument object that serves as the source for the events.
This event occurs only when printable character keys are typed, not for every key pressed on the keyboard. (For example, arrow keys and function keys do not trigger this event.)
If you need to capture non-character keypresses, the System.Windows.Forms.Control.KeyPress event triggers the System.Windows.Forms.Control.KeyDown and System.Windows.Forms.Control.KeyUp events.
Show: