Freigeben über


IAccurateTagAggregator<T> Interface

Definition

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

generic <typename T>
 where T : ITagpublic interface class IAccurateTagAggregator : IDisposable, Microsoft::VisualStudio::Text::Tagging::ITagAggregator<T>
public interface IAccurateTagAggregator<out T> : IDisposable, Microsoft.VisualStudio.Text.Tagging.ITagAggregator<out T> where T : ITag
type IAccurateTagAggregator<'T (requires 'T :> ITag)> = interface
    interface ITagAggregator<'T (requires 'T :> ITag)>
    interface IDisposable
Public Interface IAccurateTagAggregator(Of Out T)
Implements IDisposable, ITagAggregator(Of Out T)

Type Parameters

T

The type of tag returned by the aggregator.

This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Implements

Remarks

The default tag aggregator implementation also does the following: for each ITagger<T> over which it aggregates tags, if the tagger is 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.

Properties

BufferGraph

The buffer graph over which this aggregator operates.

(Inherited from ITagAggregator<T>)

Methods

GetAllTags(IMappingSpan, CancellationToken)

Gets all the tags that intersect the specified span of the type of the aggregator.

GetAllTags(NormalizedSnapshotSpanCollection, CancellationToken)

Gets all the tags that intersect the specified snapshotSpans of the type of the aggregator.

GetAllTags(SnapshotSpan, CancellationToken)

Gets all the tags that intersect the specified span of the same type as the aggregator.

GetTags(IMappingSpan)

Gets all the tags that intersect the specified span of the type of the aggregator.

(Inherited from ITagAggregator<T>)
GetTags(NormalizedSnapshotSpanCollection)

Gets all the tags that intersect the specified snapshotSpans of the type of the aggregator.

(Inherited from ITagAggregator<T>)
GetTags(SnapshotSpan)

Gets all the tags that intersect the specified span of the same type as the aggregator.

(Inherited from ITagAggregator<T>)

Events

BatchedTagsChanged

Occurs on idle after one or more TagsChanged events.

(Inherited from ITagAggregator<T>)
TagsChanged

Occurs when tags are added to or removed from providers.

(Inherited from ITagAggregator<T>)

Applies to