ITagAggregator(T) Interface

ITagAggregator<'T> Interface

 

Aggregates all the tag providers in a buffer graph for the specified type of tag.

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

No code example is currently available or this language may not be supported.

Type Parameters

out T

The type of tag returned by the aggregator.

NameDescription
System_CAPS_pubpropertyBufferGraph

Gets the buffer graph over which this aggregator operates.

NameDescription
System_CAPS_pubmethodDispose()

(Inherited from IDisposable.)

System_CAPS_pubmethodGetTags(IMappingSpan)

Gets all the tags that overlap or are contained by the specified span of the type of the aggregator.

System_CAPS_pubmethodGetTags(NormalizedSnapshotSpanCollection)

Gets all the tags that overlap or are contained by the specified snapshotSpans of the type of the aggregator.

System_CAPS_pubmethodGetTags(SnapshotSpan)

Gets all the tags that overlap or are contained by the specified span of the same type as the aggregator.

NameDescription
System_CAPS_pubeventBatchedTagsChanged

Occurs on idle after one or more TagsChanged events.

System_CAPS_pubeventTagsChanged

Occurs when tags are added to or removed from providers.

The default tag aggregator implementation also disposes disposable taggers:

for each ITagger<'T> over which the default tag aggregator aggregates tags, if the tagger implements IDisposable, call Dispose() on it when the aggregator is disposed or when the taggers are dropped. For example, you should call Dispose() when the content type of a text buffer changes or when a buffer is removed from the buffer graph.

For more information about tagging, see the "Tags and Classifiers" section of Inside the Editor. For information about extending and adding tags, see the "Extending Tags" section of Editor Extension Points.

Return to top
Show:
© 2016 Microsoft