Events2.TextDocumentKeyPressEvents Property

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

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
ReadOnly Property TextDocumentKeyPressEvents ( _
    TextDocument As TextDocument _
) As TextDocumentKeyPressEvents
TextDocumentKeyPressEvents this[
    TextDocument TextDocument
] { get; }
property TextDocumentKeyPressEvents^ TextDocumentKeyPressEvents[[InAttribute] TextDocument^ TextDocument] {
    TextDocumentKeyPressEvents^ get ([InAttribute] TextDocument^ TextDocument);
}
abstract TextDocumentKeyPressEvents : TextDocumentKeyPressEvents
JScript does not support indexed properties.

Parameters

Property Value

Type: EnvDTE80.TextDocumentKeyPressEvents
A TextDocumentKeyPressEvents object.

Remarks

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.

.NET Framework Security

See Also

Reference

Events2 Interface

EnvDTE80 Namespace