IViewTagAggregatorFactoryService.CreateTagAggregator<T> Method (ITextView, TagAggregatorOptions)

Creates a tag aggregator for the specified ITextView and with the given options that aggregates tags of the given type.

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

ITagAggregator<T> CreateTagAggregator<T>(
	ITextView textView,
	TagAggregatorOptions options
)
where T : ITag

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>.

options
Type: Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptions

The options to use for the newly created aggregator.

Return Value

Type: Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T>
The ITagAggregator<T> of the correct type for textView.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft