IViewTagAggregatorFactoryService.CreateTagAggregator Method

Definition

Overloads

CreateTagAggregator<T>(ITextView)

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

CreateTagAggregator<T>(ITextView, TagAggregatorOptions)

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

CreateTagAggregator<T>(ITextView)

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

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagAggregator<T> ^ CreateTagAggregator(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView);
public Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T> CreateTagAggregator<T> (Microsoft.VisualStudio.Text.Editor.ITextView textView) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagAggregator : Microsoft.VisualStudio.Text.Editor.ITextView -> Microsoft.VisualStudio.Text.Tagging.ITagAggregator<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)> (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)
Public Function CreateTagAggregator(Of T As ITag) (textView As ITextView) As ITagAggregator(Of T)

Type Parameters

T

The type of tag to aggregate.

Parameters

textView
ITextView

The ITextView with which to get the ITagAggregator<T>.

Returns

The ITagAggregator<T> of the correct type for textView.

Remarks

The ITagAggregatorr<T>.DispatchedTagsChanged event will be raised on the thread used to create the tag aggregator.

Applies to

CreateTagAggregator<T>(ITextView, TagAggregatorOptions)

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

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagAggregator<T> ^ CreateTagAggregator(Microsoft::VisualStudio::Text::Editor::ITextView ^ textView, Microsoft::VisualStudio::Text::Tagging::TagAggregatorOptions options);
public Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T> CreateTagAggregator<T> (Microsoft.VisualStudio.Text.Editor.ITextView textView, Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptions options) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagAggregator : Microsoft.VisualStudio.Text.Editor.ITextView * Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptions -> Microsoft.VisualStudio.Text.Tagging.ITagAggregator<'T (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)> (requires 'T :> Microsoft.VisualStudio.Text.Tagging.ITag)
Public Function CreateTagAggregator(Of T As ITag) (textView As ITextView, options As TagAggregatorOptions) As ITagAggregator(Of T)

Type Parameters

T

The type of tag to aggregate.

Parameters

textView
ITextView

The ITextView with which to get the ITagAggregator<T>.

options
TagAggregatorOptions

The options to use for the newly created aggregator.

Returns

The ITagAggregator<T> of the correct type for textView.

Applies to