다음을 통해 공유


IVsCommandHandlerServiceAdapterFactory.Create Method

Definition

Overloads

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.

Create(ITextView, IOleCommandTarget)

Creates an IVsCommandHandlerServiceAdapter instance wrapping IEditorCommandHandlerService for a given ITextView.

public:
 Microsoft::VisualStudio::Editor::IVsCommandHandlerServiceAdapter ^ Create(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ nextCmdTarget);
public Microsoft.VisualStudio.Editor.IVsCommandHandlerServiceAdapter Create (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget nextCmdTarget);
abstract member Create : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget -> Microsoft.VisualStudio.Editor.IVsCommandHandlerServiceAdapter
Public Function Create (textView As ITextView, nextCmdTarget As IOleCommandTarget) As IVsCommandHandlerServiceAdapter

Parameters

textView
ITextView

A text view to create IVsCommandHandlerServiceAdapter for.

nextCmdTarget
IOleCommandTarget

A next command target to delegate unhandled commands.

Returns

Applies to

Create(ITextView, ITextBuffer, IOleCommandTarget)

public:
 Microsoft::VisualStudio::Editor::IVsCommandHandlerServiceAdapter ^ Create(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITextBuffer ^ subjectBuffer, Microsoft::VisualStudio::OLE::Interop::IOleCommandTarget ^ nextCmdTarget);
public Microsoft.VisualStudio.Editor.IVsCommandHandlerServiceAdapter Create (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer, Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget nextCmdTarget);
abstract member Create : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITextBuffer * Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget -> Microsoft.VisualStudio.Editor.IVsCommandHandlerServiceAdapter
Public Function Create (textView As ITextView, subjectBuffer As ITextBuffer, nextCmdTarget As IOleCommandTarget) As IVsCommandHandlerServiceAdapter

Parameters

textView
ITextView

A text view to create IVsCommandHandlerServiceAdapter for.

subjectBuffer
ITextBuffer

A subject text buffer to create IVsCommandHandlerServiceAdapter for.

nextCmdTarget
IOleCommandTarget

A next command target to delegate unhandled commands.

Returns

Applies to