IClassifier.GetClassificationSpans(SnapshotSpan) 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 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.