Source::ExecMarkerCommand Method (IVsHiddenRegion^, Int32)
Executes the specified command on the specified region.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- region
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsHiddenRegion^
An IVsHiddenRegion object representing the hidden region to apply the command to.
- cmd
-
Type:
System::Int32
A value from the MarkerCommandValues enumeration specifying the command to execute.
Return Value
Type: System::Int32If successful, returns S_OK; otherwise, returns an error code. If support for commands on a hidden region is not needed, returns E_NOTIMPL.
When a user right-clicks on a hidden region marker, a context menu is displayed. The GetMarkerCommandInfo method is called to obtain the commands to display on the menu. When the user selects a command from the menu, the ExecMarkerCommand method is called. Only the commands from the MarkerCommandValues enumeration can be supported in this way.
The base method always returns E_NOTIMPL.