ITagAggregator<T>.GetTags Method (NormalizedSnapshotSpanCollection)
Gets all the tags that overlap or are contained by the specified snapshotSpans of the type of the aggregator.
Namespace: Microsoft.VisualStudio.Text.Tagging
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
‘선언
Function GetTags ( _
snapshotSpans As NormalizedSnapshotSpanCollection _
) As IEnumerable(Of IMappingTagSpan(Of T))
IEnumerable<IMappingTagSpan<T>> GetTags(
NormalizedSnapshotSpanCollection snapshotSpans
)
IEnumerable<IMappingTagSpan<T>^>^ GetTags(
NormalizedSnapshotSpanCollection^ snapshotSpans
)
abstract GetTags :
snapshotSpans:NormalizedSnapshotSpanCollection -> IEnumerable<IMappingTagSpan<'T>>
function GetTags(
snapshotSpans : NormalizedSnapshotSpanCollection
) : IEnumerable<IMappingTagSpan<T>>
Parameters
- snapshotSpans
Type: Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection
The spans to search.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.