DocumentTask::ExecMarkerCommand Method (IVsTextMarker^, Int32)

 

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

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
virtual int ExecMarkerCommand(
	IVsTextMarker^ marker,
	int item
)

Parameters

marker
Type: Microsoft.VisualStudio.TextManager.Interop::IVsTextMarker^

The marker on which to execute the command.

item
Type: System::Int32

The ID of the command to execute. The values should be taken from MarkerCommandValues.

Return Value

Type: System::Int32

When this method is implemented in derived classes, if it succeeds, it returns F:Microsoft.VisualStudio.NativeMethods.S_OK. If it fails, it returns an error code.

By default, this method does nothing and returns F:Microsoft.VisualStudio.NativeMethods.S_OK. It is an implementation of ExecMarkerCommand.

Return to top
Show: