Compartir a través de


ITextMarkerProviderFactory.GetTextMarkerTagger Method

Gets the cached text marker tagger for a given ITextBuffer.

Namespace:  Microsoft.VisualStudio.Text.Adornments
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaración
Function GetTextMarkerTagger ( _
    textBuffer As ITextBuffer _
) As SimpleTagger(Of TextMarkerTag)
SimpleTagger<TextMarkerTag> GetTextMarkerTagger(
    ITextBuffer textBuffer
)
SimpleTagger<TextMarkerTag^>^ GetTextMarkerTagger(
    ITextBuffer^ textBuffer
)
abstract GetTextMarkerTagger : 
        textBuffer:ITextBuffer -> SimpleTagger<TextMarkerTag> 
function GetTextMarkerTagger(
    textBuffer : ITextBuffer
) : SimpleTagger<TextMarkerTag>

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Tagging.SimpleTagger<TextMarkerTag>
The cached SimpleTagger<T> for textBuffer.

Remarks

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

.NET Framework Security

See Also

Reference

ITextMarkerProviderFactory Interface

Microsoft.VisualStudio.Text.Adornments Namespace