ITagAggregator<T>.GetTags Method (IMappingSpan)

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

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

IEnumerable<IMappingTagSpan<T>> GetTags(
	IMappingSpan span
)

Parameters

span
Type: Microsoft.VisualStudio.Text.IMappingSpan

The span to search.

Return Value

Type: IEnumerable<IMappingTagSpan<T>>
All the tags that overlap the region.

The default tag aggregator lazily enumerates the tags of its ITagger<T> objects. Because of this, the ordering of the returned mapping spans cannot be predicted. If you need an ordered set of spans, you should collect the returned tag spans, after being mapped to the buffer of interest, into a sortable collection.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft