共用方式為


__VSTRANSACCELEXFLAGS Enumeration

Flags for TranslateAcceleratorEx calls.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'宣告
<FlagsAttribute> _
Public Enumeration __VSTRANSACCELEXFLAGS
'用途
Dim instance As __VSTRANSACCELEXFLAGS
[FlagsAttribute]
public enum __VSTRANSACCELEXFLAGS
[FlagsAttribute]
public enum class __VSTRANSACCELEXFLAGS
[<FlagsAttribute>]
type __VSTRANSACCELEXFLAGS
public enum __VSTRANSACCELEXFLAGS

Members

Member name Description
VSTAEXF_Default The rgrguidKeyBindingScopes are pre-pended to currently active key binding scopes then command is fired.
VSTAEXF_NoFireCommand Do not fire the command through command routing.
VSTAEXF_IgnoreActiveKBScopes The rgrguidKeyBindingScopes are used INSTEAD of currently active key binding scopes.
VSTAEXF_UseTextEditorKBScope Translate keys using TextEditor key bindings. Equivalent to passing CMDUIGUID_TextEditor, CMDSETID_StandardCommandSet97, and guidKeyDupe for scopes and the VSTAEXF_IgnoreActiveKBScopes flag.
NoteNote
use this flag instead of passing any GUIDS (i.e. cKeyBindingScopes must be zero).
VSTAEXF_UseGlobalKBScope Translate keys using Global key bindings. Equivalent to passing CMDSETID_StandardCommandSet97 and guidKeyDupe for scopes and the VSTAEXF_IgnoreActiveKBScopes flag.
NoteNote
use this flag instead of passing any GUIDS (i.e. cKeyBindingScopes must be ZERO)
VSTAEXF_AllowModalState By default this function cannot be called when the shell is in a modal state, since command routing is inherently dangerous. However if you must access this in a modal state, specify this flag, but keep in mind that many commands will cause unpredictable behavior if fired.

Remarks

COM Signature

From vsshell80.idl:

See Also

Reference

Microsoft.VisualStudio.Shell.Interop Namespace