Aracılığıyla paylaş


ITagger<T>.GetTags(NormalizedSnapshotSpanCollection) Method

Definition

Gets all the tags that intersect the spans.

public:
 System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::Text::Tagging::ITagSpan<T> ^> ^ GetTags(Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ spans);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Tagging.ITagSpan<out T>> GetTags (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans);
abstract member GetTags : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> seq<Microsoft.VisualStudio.Text.Tagging.ITagSpan<'T>>
Public Function GetTags (spans As NormalizedSnapshotSpanCollection) As IEnumerable(Of ITagSpan(Of Out T))

Parameters

spans
NormalizedSnapshotSpanCollection

The spans to visit.

Returns

A ITagSpan<T> for each tag.

Remarks

Taggers are not required to return their tags in any specific order.

The recommended way to implement this method is by using generators ("yield return"), which allows lazy evaluation of the entire tagging stack.

Applies to