Прочитать на английском

Поделиться через


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);

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