共用方式為


_dispTextDocumentKeyPressEvents_Event.BeforeKeyPress 事件

更新:2007 年 11 月

這個 API 支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。

僅限 Microsoft 內部使用。

命名空間:  EnvDTE80
組件:  EnvDTE80 (在 EnvDTE80.dll 中)

語法

Event BeforeKeyPress As _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler

Dim instance As _dispTextDocumentKeyPressEvents_Event
Dim handler As _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler

AddHandler instance.BeforeKeyPress, handler
event _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler BeforeKeyPress
 event _dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler^ BeforeKeyPress {
    void add (_dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler^ value);
    void remove (_dispTextDocumentKeyPressEvents_BeforeKeyPressEventHandler^ value);
}
JScript 不支援事件。

使用權限

請參閱

參考

_dispTextDocumentKeyPressEvents_Event 介面

_dispTextDocumentKeyPressEvents_Event 成員

EnvDTE80 命名空間