Sdílet prostřednictvím


IVsCommandHandlerServiceAdapterFactory Interface

Definition

A factory service for creating IVsCommandHandlerServiceAdapters. Such adapters are used to expose IEditorCommandHandlerServices for a given text view in IOleCommandTarget based commanding intefaces, such as IVsContainedLanguage.

public interface class IVsCommandHandlerServiceAdapterFactory
public interface IVsCommandHandlerServiceAdapterFactory
type IVsCommandHandlerServiceAdapterFactory = interface
Public Interface IVsCommandHandlerServiceAdapterFactory

Remarks

This is a MEF Component, and should be exported with the following attribute: [Export(typeof(IVsCommandHandlerServiceAdapterFactory))]

Methods

Create(ITextView, IOleCommandTarget)

Creates an IVsCommandHandlerServiceAdapter instance wrapping IEditorCommandHandlerService for a given ITextView.

Create(ITextView, ITextBuffer, IOleCommandTarget)

Creates an IVsCommandHandlerServiceAdapter instance wrapping IEditorCommandHandlerService for a given ITextView and IVsTextBuffer.

GetCurrentOleCommandExecutionInput(ITextView)

Returns OleCommandExecutionArgs instance representing raw (as passed to Exec(Guid, UInt32, UInt32, IntPtr, IntPtr) input arguments for the currently executing command.

Applies to