In This Article

ITagger<T> Interface

Provides the base requirements for a object that can provide ITag objects that intersect with specified text ranges within an ICodeDocument.

public interface ITagger<T> : IOrderable, IKeyedObject where T : ITag
Type Parameters:
T -

The type of tag associated with this tagger.

Methods

Close()

Closes the tagger and detaches it.

void Close()

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.

Events

Closed

Occurs after the tagger is closed.

event EventHandler Closed

Event Type

EventHandler

TagsChanged

Occurs after available tags for a specified TextSnapshotRange have changed.

event EventHandler<TagsChangedEventArgs> TagsChanged

Event Type

EventHandler<TagsChangedEventArgs>

Inherited Members

See Also