共用方式為


IKeyProcessorProvider.GetAssociatedProcessor(IWpfTextView) Method

Definition

Creates a KeyProcessor for a given IWpfTextView.

public:
 Microsoft::VisualStudio::Text::Editor::KeyProcessor ^ GetAssociatedProcessor(Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ wpfTextView);
public:
 Microsoft::VisualStudio::Text::Editor::KeyProcessor ^ GetAssociatedProcessor(Microsoft::VisualStudio::Text::Editor::IWpfTextView ^ wpfTextView);
Microsoft::VisualStudio::Text::Editor::KeyProcessor GetAssociatedProcessor(Microsoft::VisualStudio::Text::Editor::IWpfTextView const & wpfTextView);
public Microsoft.VisualStudio.Text.Editor.KeyProcessor GetAssociatedProcessor (Microsoft.VisualStudio.Text.Editor.IWpfTextView wpfTextView);
abstract member GetAssociatedProcessor : Microsoft.VisualStudio.Text.Editor.IWpfTextView -> Microsoft.VisualStudio.Text.Editor.KeyProcessor
Public Function GetAssociatedProcessor (wpfTextView As IWpfTextView) As KeyProcessor

Parameters

wpfTextView
IWpfTextView

The IWpfTextView for which to create the KeyProcessor.

Returns

The created KeyProcessor. The value may be null if this IKeyProcessorProvider does not wish to participate in the current context.

Applies to