_dispTextDocumentKeyPressEvents.BeforeKeyPress 方法
這個應用程式開發介面支援 .NET Framework 基礎結構,但您不可以直接在程式碼中使用它。
僅限 Microsoft 內部使用。
命名空間: EnvDTE80
組件: EnvDTE80 (在 EnvDTE80.dll 中)
語法
'宣告
Sub BeforeKeyPress ( _
Keypress As String, _
Selection As TextSelection, _
InStatementCompletion As Boolean, _
ByRef CancelKeypress As Boolean _
)
void BeforeKeyPress(
string Keypress,
TextSelection Selection,
bool InStatementCompletion,
ref bool CancelKeypress
)
void BeforeKeyPress(
String^ Keypress,
TextSelection^ Selection,
bool InStatementCompletion,
bool% CancelKeypress
)
abstract BeforeKeyPress :
Keypress:string *
Selection:TextSelection *
InStatementCompletion:bool *
CancelKeypress:bool byref -> unit
function BeforeKeyPress(
Keypress : String,
Selection : TextSelection,
InStatementCompletion : boolean,
CancelKeypress : boolean
)
參數
Keypress
類型:String
Selection
類型:TextSelection
InStatementCompletion
類型:Boolean
CancelKeypress
類型:Boolean%
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。