ITextViewLineCollection.GetTextViewLinesIntersectingSpan 方法

获取与 bufferSpan 相交的所有 ITextViewLine 对象。

命名空间:  Microsoft.VisualStudio.Text.Editor
程序集:  Microsoft.VisualStudio.Text.UI(在 Microsoft.VisualStudio.Text.UI.dll 中)

语法

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

参数

返回值

类型:Collection<ITextViewLine>
与缓冲区跨距相交的 ITextViewLine 对象的已排序集合。

备注

; 如果在 ITextViewLine 对象此集合和 bufferSpan之间的交集,这将返回空列表。此方法处理对于缓冲区中的最后一行所需的特殊处理。

.NET Framework 安全性

请参阅

参考

ITextViewLineCollection 接口

Microsoft.VisualStudio.Text.Editor 命名空间