IViewTagAggregatorFactoryService.CreateTagAggregator<T> Method (ITextView)
Creates a tag aggregator for the specified ITextView that aggregates tags of the given type.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)
Syntax
'Déclaration
Function CreateTagAggregator(Of T As ITag) ( _
textView As ITextView _
) As ITagAggregator(Of T)
ITagAggregator<T> CreateTagAggregator<T>(
ITextView textView
)
where T : ITag
generic<typename T>
where T : ITag
ITagAggregator<T>^ CreateTagAggregator(
ITextView^ textView
)
abstract CreateTagAggregator :
textView:ITextView -> ITagAggregator<'T> when 'T : ITag
JScript does not support generic types or methods.
Type Parameters
- T
The type of tag to aggregate.
Parameters
- textView
Type: Microsoft.VisualStudio.Text.Editor.ITextView
The ITextView with which to get the ITagAggregator<T>.
Return Value
Type: Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
The ITagAggregator<T> of the correct type for textView.
Remarks
The BatchedTagsChanged event will be raised on the thread used to create the tag aggregator.
.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.