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
声明
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
- 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.
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
- 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.