Delen via


IBufferGraph.GetTextBuffers Method

Finds all the ITextBuffer objects in the graph that match the specified predicate.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Function GetTextBuffers ( _
    match As Predicate(Of ITextBuffer) _
) As Collection(Of ITextBuffer)
Collection<ITextBuffer> GetTextBuffers(
    Predicate<ITextBuffer> match
)
Collection<ITextBuffer^>^ GetTextBuffers(
    Predicate<ITextBuffer^>^ match
)
abstract GetTextBuffers : 
        match:Predicate<ITextBuffer> -> Collection<ITextBuffer> 
function GetTextBuffers(
    match : Predicate<ITextBuffer>
) : Collection<ITextBuffer>

Parameters

  • match
    Type: Predicate<ITextBuffer>

    The predicate used for matching.

Return Value

Type: Collection<ITextBuffer>
A non-nulla null reference (Nothing in Visual Basic) but possibly empty collection of ITextBuffer objects.

Exceptions

Exception Condition
ArgumentNullException

match is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

IBufferGraph Interface

Microsoft.VisualStudio.Text.Projection Namespace