_dispTextDocumentKeyPressEvents.BeforeKeyPress 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
仅限 Microsoft 内部使用。
此 API 支持产品基础结构,不能在代码中直接使用。
public:
void BeforeKeyPress(System::String ^ Keypress, EnvDTE::TextSelection ^ Selection, bool InStatementCompletion, bool % CancelKeypress);
void BeforeKeyPress(std::wstring const & Keypress, EnvDTE::TextSelection const & Selection, bool InStatementCompletion, bool & CancelKeypress);
[System.Runtime.InteropServices.DispId(1)]
public void BeforeKeyPress (string Keypress, EnvDTE.TextSelection Selection, bool InStatementCompletion, ref bool CancelKeypress);
[<System.Runtime.InteropServices.DispId(1)>]
abstract member BeforeKeyPress : string * EnvDTE.TextSelection * bool * bool -> unit
Public Sub BeforeKeyPress (Keypress As String, Selection As TextSelection, InStatementCompletion As Boolean, ByRef CancelKeypress As Boolean)
参数
- Keypress
- String
- Selection
- TextSelection
- InStatementCompletion
- Boolean
- CancelKeypress
- Boolean
- 属性