Freigeben über


ITaggerProvider.CreateTagger<T>(ITextBuffer) Method

Definition

Creates a tag provider for the specified buffer.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagger<T> ^ CreateTagger(Microsoft::VisualStudio::Text::ITextBuffer ^ buffer);
public Microsoft.VisualStudio.Text.Tagging.ITagger<T> CreateTagger<T> (Microsoft.VisualStudio.Text.ITextBuffer buffer) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagger : 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) (buffer As ITextBuffer) As ITagger(Of T)

Type Parameters

T

The type of the tag.

Parameters

buffer
ITextBuffer

The ITextBuffer.

Returns

The ITagger<T>.

Applies to