Udostępnij za pośrednictwem


ITextViewLineCollection.GetTextViewLinesIntersectingSpan(SnapshotSpan) Method

Definition

Gets all of the ITextViewLine objects that intersect bufferSpan.

public:
 System::Collections::ObjectModel::Collection<Microsoft::VisualStudio::Text::Formatting::ITextViewLine ^> ^ GetTextViewLinesIntersectingSpan(Microsoft::VisualStudio::Text::SnapshotSpan bufferSpan);
public System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.Formatting.ITextViewLine> GetTextViewLinesIntersectingSpan (Microsoft.VisualStudio.Text.SnapshotSpan bufferSpan);
abstract member GetTextViewLinesIntersectingSpan : Microsoft.VisualStudio.Text.SnapshotSpan -> System.Collections.ObjectModel.Collection<Microsoft.VisualStudio.Text.Formatting.ITextViewLine>
Public Function GetTextViewLinesIntersectingSpan (bufferSpan As SnapshotSpan) As Collection(Of ITextViewLine)

Parameters

bufferSpan
SnapshotSpan

The span.

Returns

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

Remarks

This will return 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.

Applies to