Events2::TextDocumentKeyPressEvents Property (TextDocument^)

 

Gets an event object which can be used to find key press events within a text editor.

Namespace:   EnvDTE80
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.

Return to top
Show: