IBufferTagAggregatorFactoryService.CreateTagAggregator Method

Definition

Overloads

CreateTagAggregator<T>(ITextBuffer)

Creates a tag aggregator for a textBuffer.

CreateTagAggregator<T>(ITextBuffer, TagAggregatorOptions)

Creates a tag aggregator for a textBuffer, using the given options.

CreateTagAggregator<T>(ITextBuffer)

Creates a tag aggregator for a textBuffer.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagAggregator<T> ^ CreateTagAggregator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer);
public Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T> CreateTagAggregator<T> (Microsoft.VisualStudio.Text.ITextBuffer textBuffer) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagAggregator : Microsoft.VisualStudio.Text.ITextBuffer -> 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) (textBuffer As ITextBuffer) As ITagAggregator(Of T)

Type Parameters

T

The type of tag to aggregate.

Parameters

textBuffer
ITextBuffer

The ITextBuffer over which the aggregator should aggregate tags, including all source buffers if the buffer is a projection buffer.

Returns

The tag aggregator for textBuffer.

Remarks

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

Applies to

CreateTagAggregator<T>(ITextBuffer, TagAggregatorOptions)

Creates a tag aggregator for a textBuffer, using the given options.

public:
generic <typename T>
 where T : Microsoft::VisualStudio::Text::Tagging::ITag Microsoft::VisualStudio::Text::Tagging::ITagAggregator<T> ^ CreateTagAggregator(Microsoft::VisualStudio::Text::ITextBuffer ^ textBuffer, Microsoft::VisualStudio::Text::Tagging::TagAggregatorOptions options);
public Microsoft.VisualStudio.Text.Tagging.ITagAggregator<T> CreateTagAggregator<T> (Microsoft.VisualStudio.Text.ITextBuffer textBuffer, Microsoft.VisualStudio.Text.Tagging.TagAggregatorOptions options) where T : Microsoft.VisualStudio.Text.Tagging.ITag;
abstract member CreateTagAggregator : Microsoft.VisualStudio.Text.ITextBuffer * 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) (textBuffer As ITextBuffer, options As TagAggregatorOptions) As ITagAggregator(Of T)

Type Parameters

T

The type of tag to aggregate.

Parameters

textBuffer
ITextBuffer

The ITextBuffer over which the aggregator should aggregate tags, including all source buffers if the buffer is a projection buffer.

options
TagAggregatorOptions

The options to use for the newly created aggregator.

Returns

The tag aggregator for textBuffer.

Applies to