ITextViewLineCollection.GetTextViewLinesIntersectingSpan(SnapshotSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.