Export (0) Print
Expand All

IVsTextMarkerClient.ExecMarkerCommand Method

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 (
	[InAttribute] IVsTextMarker pMarker,
	[InAttribute] int iItem
int ExecMarkerCommand (
	/** @attribute InAttribute() */ IVsTextMarker pMarker, 
	/** @attribute InAttribute() */ int iItem
function ExecMarkerCommand (
	pMarker : IVsTextMarker, 
	iItem : int
) : int



[in] Pointer to the IVsTextMarker interface for the marker.


[in] Command selected by the user from the context menu. For a list of iItem values, see MarkerCommandValues.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

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.

Community Additions

© 2014 Microsoft