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
'Dichiarazione
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
- textBuffer
Type: Microsoft.VisualStudio.Text.ITextBuffer
The ITextBuffer with which to get the text marker tagger.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.