In This Article

ITagAggregator<T> Interface

Provides the base requirements for a object that aggregates ITag objects from multiple ITagger<T> instances.

public interface ITagAggregator<T> : IDisposable where T : ITag
Type Parameters:
T -

The type of ITag associated with this aggregator.

Methods

GetTags(NormalizedTextSnapshotRangeCollection, Object)

Returns the tag ranges that intersect with the specified normalized snapshot ranges.

IEnumerable<TagSnapshotRange<T>> GetTags(NormalizedTextSnapshotRangeCollection snapshotRanges, object parameter)
Parameter Type Description
snapshotRanges NormalizedTextSnapshotRangeCollection

The collection of normalized snapshot ranges.

parameter Object

An optional parameter that provides contextual information about the tag request.

Returns

IEnumerable<TagSnapshotRange<T>>:

The tag ranges that intersect with the specified normalized snapshot ranges.

GetTags(TextSnapshotRange[])

Returns the tag ranges that intersect with the specified snapshot ranges.

IEnumerable<TagSnapshotRange<T>> GetTags(params TextSnapshotRange[] snapshotRanges)
Parameter Type Description
snapshotRanges TextSnapshotRange[]

The array of snapshot ranges.

Returns

IEnumerable<TagSnapshotRange<T>>:

The tag ranges that intersect with the specified snapshot ranges.

Events

TagsChanged

Occurs after available tags for a specified TextSnapshotRange have changed.

event EventHandler<TagsChangedEventArgs> TagsChanged

Event Type

EventHandler<TagsChangedEventArgs>

Inherited Members