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
声明
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
- span
Type: Microsoft.VisualStudio.Text.SnapshotSpan
The snapshot span.
Return Value
Type: System.Collections.Generic.IList<ClassificationSpan>
A list of ClassificationSpan objects that intersect with the given range.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.