Events2.TextDocumentKeyPressEvents 属性

获取一个事件对象,该事件对象可用于在文本编辑器中查找按键事件。

命名空间:  EnvDTE80
程序集:  EnvDTE80(在 EnvDTE80.dll 中)

语法

声明
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 不支持索引属性。

参数

  • TextDocument
    类型:TextDocument

    可选。 一个用作事件源的 TextDocument 对象。

属性值

类型:EnvDTE80.TextDocumentKeyPressEvents
一个 TextDocumentKeyPressEvents 对象。

备注

只有当敲击了可打印字符键,而不是在键盘上按下的每一个键时,才会发生此事件。(例如,箭头键和功能键不会触发此事件。)

如果需要捕获非字符按键,则 System.Windows.Forms.Control.KeyPress 事件会触发 System.Windows.Forms.Control.KeyDown 和 System.Windows.Forms.Control.KeyUp 事件。

.NET Framework 安全性

请参阅

参考

Events2 接口

EnvDTE80 命名空间