Condividi tramite


IProjectionBufferFactoryService.CreateElisionBuffer Method (IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions, IContentType)

Create an elision buffer initialized to expose the provided 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, _
    contentType As IContentType _
) As IElisionBuffer
IElisionBuffer CreateElisionBuffer(
    IProjectionEditResolver projectionEditResolver,
    NormalizedSnapshotSpanCollection exposedSpans,
    ElisionBufferOptions options,
    IContentType contentType
)
IElisionBuffer^ CreateElisionBuffer(
    IProjectionEditResolver^ projectionEditResolver, 
    NormalizedSnapshotSpanCollection^ exposedSpans, 
    ElisionBufferOptions options, 
    IContentType^ contentType
)
abstract CreateElisionBuffer : 
        projectionEditResolver:IProjectionEditResolver * 
        exposedSpans:NormalizedSnapshotSpanCollection * 
        options:ElisionBufferOptions * 
        contentType:IContentType -> IElisionBuffer 
function CreateElisionBuffer(
    projectionEditResolver : IProjectionEditResolver, 
    exposedSpans : NormalizedSnapshotSpanCollection, 
    options : ElisionBufferOptions, 
    contentType : IContentType
) : IElisionBuffer

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.Projection.IElisionBuffer
A non-null elision buffer.

Exceptions

Exception Condition
ArgumentNullException

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

-or-

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

.NET Framework Security

See Also

Reference

IProjectionBufferFactoryService Interface

CreateElisionBuffer Overload

Microsoft.VisualStudio.Text.Projection Namespace