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 :
TextDocument:TextDocument -> TextDocumentKeyPressEvents with get
JScript does not support indexed properties.
Parameters
TextDocument
Type: EnvDTE.TextDocumentOptional. A TextDocument object that serves as the source for the events.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.