IVsCommandHandlerServiceAdapterFactory.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
Creates an IVsCommandHandlerServiceAdapter instance wrapping IEditorCommandHandlerService for a given ITextView and IVsTextBuffer.
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.