Freigeben über


IClassifier.GetClassificationSpans(SnapshotSpan) Method

Definition

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

public:
 System::Collections::Generic::IList<Microsoft::VisualStudio::Text::Classification::ClassificationSpan ^> ^ GetClassificationSpans(Microsoft::VisualStudio::Text::SnapshotSpan span);
public System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Classification.ClassificationSpan> GetClassificationSpans (Microsoft.VisualStudio.Text.SnapshotSpan span);
abstract member GetClassificationSpans : Microsoft.VisualStudio.Text.SnapshotSpan -> System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Classification.ClassificationSpan>
Public Function GetClassificationSpans (span As SnapshotSpan) As IList(Of ClassificationSpan)

Parameters

span
SnapshotSpan

The snapshot span.

Returns

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

Applies to