IAccurateTagger<T>.GetAllTags 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> ^> ^ GetAllTags(Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ spans, System::Threading::CancellationToken cancel);
public System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Tagging.ITagSpan<out T>> GetAllTags (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans, System.Threading.CancellationToken cancel);
abstract member GetAllTags : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection * System.Threading.CancellationToken -> seq<Microsoft.VisualStudio.Text.Tagging.ITagSpan<'T>>
Public Function GetAllTags (spans As NormalizedSnapshotSpanCollection, cancel As CancellationToken) As IEnumerable(Of ITagSpan(Of Out T))
Parameters
The spans to visit.
- cancel
- CancellationToken
Cancellation token
Returns
A ITagSpan<T> for each tag.
Remarks
This method is used when final results are needed (when, for example, when doing color printing) and is expected to return final results (however long it takes to compute) instead of quick but tentative results.
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.