IEditorCommandHandlerServiceFactory.GetService 方法

定义

重载

GetService(ITextView)

获取或创建 IEditorCommandHandlerService 给定的实例 ITextView

GetService(ITextView, ITextBuffer)

为给定的和创建新的 IEditorCommandHandlerService 实例 ITextView ITextBuffer

GetService(ITextView)

获取或创建 IEditorCommandHandlerService 给定的实例 ITextView

public:
 Microsoft::VisualStudio::Text::Editor::Commanding::IEditorCommandHandlerService ^ GetService(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public Microsoft.VisualStudio.Text.Editor.Commanding.IEditorCommandHandlerService GetService (Microsoft.VisualStudio.Text.Editor.ITextView textView);
abstract member GetService : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Text.Editor.Commanding.IEditorCommandHandlerService
Public Function GetService (textView As ITextView) As IEditorCommandHandlerService

参数

textView
ITextView

要为其获取或创建的文本视图 IEditorCommandHandlerService

返回

IEditorCommandHandlerService

注解

IEditorCommandHandlerService 为每个实例创建一个实例 ITextView

适用于

GetService(ITextView, ITextBuffer)

为给定的和创建新的 IEditorCommandHandlerService 实例 ITextView ITextBuffer

public:
 Microsoft::VisualStudio::Text::Editor::Commanding::IEditorCommandHandlerService ^ GetService(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITextBuffer ^ subjectBuffer);
public Microsoft.VisualStudio.Text.Editor.Commanding.IEditorCommandHandlerService GetService (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITextBuffer subjectBuffer);
abstract member GetService : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Editor.Commanding.IEditorCommandHandlerService
Public Function GetService (textView As ITextView, subjectBuffer As ITextBuffer) As IEditorCommandHandlerService

参数

textView
ITextView

要为其创建的文本视图 IEditorCommandHandlerService

subjectBuffer
ITextBuffer

要为其创建的文本缓冲区 IEditorCommandHandlerService

返回

IEditorCommandHandlerService

适用于