获取与 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>
参数
bufferSpan
类型:Microsoft.VisualStudio.Text.SnapshotSpan范围。
返回值
类型:Collection<ITextViewLine>
与缓冲区跨距相交的 ITextViewLine 对象的已排序集合。
备注
; 如果在 ITextViewLine 对象此集合和 bufferSpan之间的交集,这将返回空列表。此方法处理对于缓冲区中的最后一行所需的特殊处理。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。