Compartilhar via


Método ITextViewLineCollection.GetTextViewLinesIntersectingSpan

Obtém todas as ITextViewLine objetos que formam uma interseção bufferSpan.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (em Microsoft.VisualStudio.Text.UI.dll)

Sintaxe

'Declaração
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>

Parâmetros

Valor de retorno

Tipo: Collection<ITextViewLine>
Uma coleção classificada de ITextViewLine objetos que se cruzam o buffer de span.

Comentários

Isso retorna uma lista vazia se não houver nenhuma interseção entre a ITextViewLine objetos dessa coleção e bufferSpan.Esse método manipula o processamento especial exigido para a última linha do buffer.

Segurança do .NET Framework

Consulte também

Referência

ITextViewLineCollection Interface

Namespace Microsoft.VisualStudio.Text.Editor