Condividi tramite


IProjectionBufferFactoryService.CreateElisionBuffer Method (IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions)

Creates an elision buffer with the default projection IContentType and initialized to the specified list of snapshot spans from a single source buffer.

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

Syntax

'Dichiarazione
Function CreateElisionBuffer ( _
    projectionEditResolver As IProjectionEditResolver, _
    exposedSpans As NormalizedSnapshotSpanCollection, _
    options As ElisionBufferOptions _
) As IElisionBuffer
IElisionBuffer CreateElisionBuffer(
    IProjectionEditResolver projectionEditResolver,
    NormalizedSnapshotSpanCollection exposedSpans,
    ElisionBufferOptions options
)
IElisionBuffer^ CreateElisionBuffer(
    IProjectionEditResolver^ projectionEditResolver, 
    NormalizedSnapshotSpanCollection^ exposedSpans, 
    ElisionBufferOptions options
)
abstract CreateElisionBuffer : 
        projectionEditResolver:IProjectionEditResolver * 
        exposedSpans:NormalizedSnapshotSpanCollection * 
        options:ElisionBufferOptions -> IElisionBuffer 
function CreateElisionBuffer(
    projectionEditResolver : IProjectionEditResolver, 
    exposedSpans : NormalizedSnapshotSpanCollection, 
    options : ElisionBufferOptions
) : IElisionBuffer

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Projection.IElisionBuffer
A non-nulla null reference (Nothing in Visual Basic) elision buffer.

Exceptions

Exception Condition
ArgumentNullException

exposedSpans is null.

.NET Framework Security

See Also

Reference

IProjectionBufferFactoryService Interface

CreateElisionBuffer Overload

Microsoft.VisualStudio.Text.Projection Namespace