ITagger<T>.GetTags(NormalizedSnapshotSpanCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The spans to visit.
Returns
IEnumerable<ITagSpan<T>>
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.