IVsTextMarkerClient::ExecMarkerCommand Method (IVsTextMarker^, Int32)
Visual Studio 2015
Executes a command on a specific marker within the text buffer.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
Parameters
- pMarker
-
Type:
Microsoft.VisualStudio.TextManager.Interop::IVsTextMarker^
[in] Pointer to the IVsTextMarker interface for the marker.
- iItem
-
Type:
System::Int32
[in] Command selected by the user from the context menu. For a list of iItem values, see MarkerCommandValues.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From textmgr.idl:
HRESULT IVsTextMarkerClient::ExecMarkerCommand( [in] IVsTextMarker* pMarker, [in] long iItem );
Implement this method along with GetMarkerCommandInfo to override the marker commands that the text marker itself provides to the context menu.
Show: