Udostępnij za pośrednictwem


IViewTaggerProvider.CreateTagger<T>(ITextView, ITextBuffer) Method

Definition

Creates a tag provider for the specified view and buffer.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagger<T> ^ CreateTagger(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::ITextBuffer ^ buffer);
public Microsoft.VisualStudio.Text.Tagging.ITagger<T> CreateTagger<T> (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.ITextBuffer buffer) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagger : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Tagging.ITagger<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)> (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)
Public Function CreateTagger(Of T As ITag) (textView As ITextView, buffer As ITextBuffer) As ITagger(Of T)

Type Parameters

T

The type of the tag.

Parameters

textView
ITextView

The ITextView.

buffer
ITextBuffer

The ITextBuffer.

Returns

The ITagAggregator<T> of the correct type for textView.

Applies to