IVsTextMarkerClient::GetMarkerCommandInfo Method (IVsTextMarker^, Int32, array<String^>^, array<UInt32>^)
Visual Studio 2015
Queries the marker for the command information.
Assembly: Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)
int GetMarkerCommandInfo( IVsTextMarker^ pMarker, int iItem, array<String^>^ pbstrText, array<unsigned int>^ pcmdf )
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.
- pbstrText
-
Type:
array<System::String^>^
[out] Text of the marker command in the context menu.
- pcmdf
-
Type:
array<System::UInt32>^
[out] Pointer to command flags.
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::GetMarkerCommandInfo( [in] IVsTextMarker* pMarker, [in] long iItem, [out, custom(uuid_IVsTextMarkerClient, "optional")] BSTR * pbstrText, [out] DWORD* pcmdf );
Implement this method along with ExecMarkerCommand to override the marker commands that the text marker itself provides to the context menu.
Show: