ITextViewLineCollection::GetTextViewLinesIntersectingSpan Method (SnapshotSpan)

 

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)

Collection<ITextViewLine^>^ GetTextViewLinesIntersectingSpan(
	SnapshotSpan bufferSpan
)

Parameters

bufferSpan
Type: Microsoft.VisualStudio.Text::SnapshotSpan

The span.

Return Value

Type: System.Collections.ObjectModel::Collection<ITextViewLine^>^

A sorted collection of ITextViewLine objects that intersect the buffer span.

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.

Return to top
Show: