ITextMarkerProviderFactory.GetTextMarkerTagger(ITextBuffer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.