Partilhar via


IVsHiddenTextClient.ExecMarkerCommand(IVsHiddenRegion, Int32) Method

Definition

Executes a text marker command against a marker.

public:
 int ExecMarkerCommand(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ pHidReg, int iItem);
public:
 int ExecMarkerCommand(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion ^ pHidReg, int iItem);
int ExecMarkerCommand(Microsoft::VisualStudio::TextManager::Interop::IVsHiddenRegion const & pHidReg, int iItem);
public int ExecMarkerCommand (Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion pHidReg, int iItem);
abstract member ExecMarkerCommand : Microsoft.VisualStudio.TextManager.Interop.IVsHiddenRegion * int -> int
Public Function ExecMarkerCommand (pHidReg As IVsHiddenRegion, iItem As Integer) As Integer

Parameters

pHidReg
IVsHiddenRegion

[in] Pointer to a hidden region object IVsHiddenRegion

iItem
Int32

[in] Integer identifying the item number for a marker type's context menu command. Values typically range from 0 to 9, but the marker type may also support command values 101 through 103. For more information about these command values, see MarkerCommandValues

Returns

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

Remarks

COM Signature

From textmgr.idl:

HRESULT IVsHiddenTextClient::ExecMarkerCommand(  
   [in] IVsHiddenRegion *pHidReg,   
   [in] long iItem  
);  

Each marker type provided with the core text editor has a list of context menu commands associated with the marker type. Use IVsHiddenTextClient.ExecMarkerCommand to execute one of these commands against the text marker. Use GetMarkerCommandInfo to return information, such as the display string, for each command.

Applies to