Udostępnij za pośrednictwem


IAccurateClassifier.GetAllClassificationSpans Method

Definition

Gets all the ClassificationSpan objects that intersect the given range of text.

public:
 System::Collections::Generic::IList<Microsoft::VisualStudio::Text::Classification::ClassificationSpan ^> ^ GetAllClassificationSpans(Microsoft::VisualStudio::Text::SnapshotSpan span, System::Threading::CancellationToken cancel);
public System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Classification.ClassificationSpan> GetAllClassificationSpans (Microsoft.VisualStudio.Text.SnapshotSpan span, System.Threading.CancellationToken cancel);
abstract member GetAllClassificationSpans : Microsoft.VisualStudio.Text.SnapshotSpan * System.Threading.CancellationToken -> System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Classification.ClassificationSpan>
Public Function GetAllClassificationSpans (span As SnapshotSpan, cancel As CancellationToken) As IList(Of ClassificationSpan)

Parameters

span
SnapshotSpan

The snapshot span.

cancel
CancellationToken

Cancellation token

Returns

A list of ClassificationSpan objects that intersect with the given range.

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.

If the underlying tagger does not support IClassifier, then IClassifier.GetClassificationSpans(...) is used instead.

Applies to