Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Creates a tag provider for the specified view and buffer.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Declaration
Function CreateTagger(Of T As ITag) ( _
textView As ITextView, _
buffer As ITextBuffer _
) As ITagger(Of T)
ITagger<T> CreateTagger<T>(
ITextView textView,
ITextBuffer buffer
)
where T : ITag
generic<typename T>
where T : ITag
ITagger<T>^ CreateTagger(
ITextView^ textView,
ITextBuffer^ buffer
)
abstract CreateTagger :
textView:ITextView *
buffer:ITextBuffer -> ITagger<'T> when 'T : ITag
JScript does not support generic types or methods.
Type Parameters
- T
The type of the tag.
Parameters
textView
Type: Microsoft.VisualStudio.Text.Editor.ITextViewThe ITextView.
buffer
Type: Microsoft.VisualStudio.Text.ITextBufferThe ITextBuffer.
Return Value
Type: Microsoft.VisualStudio.Text.Tagging.ITagger<T>
The ITagAggregator<T> of the correct type for textView.
.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.