IVsTextMarkerClient::ExecMarkerCommand Method (IVsTextMarker^, Int32)

 

Executes a command on a specific marker within the text buffer.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int ExecMarkerCommand(
	IVsTextMarker^ pMarker,
	int iItem
)

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::Int32

If 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.

Return to top
Show: