Partager via


IClassifier.GetClassificationSpans Method

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

Namespace:  Microsoft.VisualStudio.Text.Classification
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Déclaration
Function GetClassificationSpans ( _
    span As SnapshotSpan _
) As IList(Of ClassificationSpan)
IList<ClassificationSpan> GetClassificationSpans(
    SnapshotSpan span
)
IList<ClassificationSpan^>^ GetClassificationSpans(
    SnapshotSpan span
)
abstract GetClassificationSpans : 
        span:SnapshotSpan -> IList<ClassificationSpan> 
function GetClassificationSpans(
    span : SnapshotSpan
) : IList<ClassificationSpan>

Parameters

Return Value

Type: System.Collections.Generic.IList<ClassificationSpan>
A list of ClassificationSpan objects that intersect with the given range.

.NET Framework Security

See Also

Reference

IClassifier Interface

Microsoft.VisualStudio.Text.Classification Namespace