Share via


ITextMarkerProviderFactory.GetTextMarkerTagger(ITextBuffer) Method

Definition

Gets the cached text marker tagger for a given ITextBuffer. If one does not exist, creates and caches a new SimpleTagger<T> with the ITextBuffer.

public:
 Microsoft::VisualStudio::Text::Tagging::SimpleTagger<Microsoft::VisualStudio::Text::Tagging::TextMarkerTag ^> ^ GetTextMarkerTagger(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public Microsoft.VisualStudio.Text.Tagging.SimpleTagger<Microsoft.VisualStudio.Text.Tagging.TextMarkerTag> GetTextMarkerTagger (Microsoft.VisualStudio.Text.ITextBuffer textBuffer);
abstract member GetTextMarkerTagger : Microsoft.VisualStudio.Text.ITextBuffer -> Microsoft.VisualStudio.Text.Tagging.SimpleTagger<Microsoft.VisualStudio.Text.Tagging.TextMarkerTag>
Public Function GetTextMarkerTagger (textBuffer As ITextBuffer) As SimpleTagger(Of TextMarkerTag)

Parameters

textBuffer
ITextBuffer

The ITextBuffer with which to get the text marker tagger.

Returns

The cached SimpleTagger<T> for textBuffer.

Remarks

If no tagger exists, creates and caches a new SimpleTagger<T> with the ITextBuffer.

Applies to