Compartir a través de


ITextViewLineCollection.GetTextViewLinesIntersectingSpan Method

Gets all of the ITextViewLine objects that intersect bufferSpan.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function GetTextViewLinesIntersectingSpan ( _
    bufferSpan As SnapshotSpan _
) As Collection(Of ITextViewLine)
Collection<ITextViewLine> GetTextViewLinesIntersectingSpan(
    SnapshotSpan bufferSpan
)
Collection<ITextViewLine^>^ GetTextViewLinesIntersectingSpan(
    SnapshotSpan bufferSpan
)
abstract GetTextViewLinesIntersectingSpan : 
        bufferSpan:SnapshotSpan -> Collection<ITextViewLine> 
function GetTextViewLinesIntersectingSpan(
    bufferSpan : SnapshotSpan
) : Collection<ITextViewLine>

Parameters

Return Value

Type: Collection<ITextViewLine>
A sorted collection of ITextViewLine objects that intersect the buffer span.

Remarks

This returns an empty list if there is no intersection between the ITextViewLine objects in this collection and bufferSpan.This method handles the special processing required for the last line of the buffer.

.NET Framework Security

See Also

Reference

ITextViewLineCollection Interface

Microsoft.VisualStudio.Text.Editor Namespace