Handles the translation of special navigation keys.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'宣言
Public Overridable Function TranslateAccelerator ( _
msg As MSG() _
) As Integer
'使用
Dim instance As SimpleEditorView
Dim msg As MSG()
Dim returnValue As Integer
returnValue = instance.TranslateAccelerator(msg)
public virtual int TranslateAccelerator(
MSG[] msg
)
public:
virtual int TranslateAccelerator(
array<MSG>^ msg
)
public function TranslateAccelerator(
msg : MSG[]
) : int
Parameters
msg
Type: []An array of MSG structures holding the keyboard character or character combination to be handled.
Return Value
Type: System.Int32
When implemented by derived classes, if the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsWindowPane.TranslateAccelerator([])
Remarks
By default returns S_FALSE().
Permissions
- 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.