Partager via


ITagAggregator<T>.GetTags Method (SnapshotSpan)

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

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

Syntax

'Déclaration
Function GetTags ( _
    span As SnapshotSpan _
) As IEnumerable(Of IMappingTagSpan(Of T))
IEnumerable<IMappingTagSpan<T>> GetTags(
    SnapshotSpan span
)
IEnumerable<IMappingTagSpan<T>^>^ GetTags(
    SnapshotSpan span
)
abstract GetTags : 
        span:SnapshotSpan -> IEnumerable<IMappingTagSpan<'T>> 
function GetTags(
    span : SnapshotSpan
) : IEnumerable<IMappingTagSpan<T>>

Parameters

Return Value

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

Remarks

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.

.NET Framework Security

See Also

Reference

ITagAggregator<T> Interface

GetTags Overload

Microsoft.VisualStudio.Text.Tagging Namespace