IProjectionBufferFactoryService.CreateElisionBuffer Method

Definition

Overloads

CreateElisionBuffer(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.

CreateElisionBuffer(IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions, IContentType)

Create an elision buffer initialized to expose the provided list of snapshot spans from a single source buffer.

CreateElisionBuffer(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.

public Microsoft.VisualStudio.Text.Projection.IElisionBuffer CreateElisionBuffer (Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver projectionEditResolver, Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection exposedSpans, Microsoft.VisualStudio.Text.Projection.ElisionBufferOptions options);
Parameters
projectionEditResolver
IProjectionEditResolver

The conflict resolver for this IProjectionBuffer. May be null.

exposedSpans
NormalizedSnapshotSpanCollection

The set of spans (from a single source buffer) that are initially exposed in the elision buffer.

options
ElisionBufferOptions

Options for this buffer.

Returns

A non-null elision buffer.

Exceptions

exposedSpans is null.

CreateElisionBuffer(IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions, IContentType)

Create an elision buffer initialized to expose the provided list of snapshot spans from a single source buffer.

public Microsoft.VisualStudio.Text.Projection.IElisionBuffer CreateElisionBuffer (Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver projectionEditResolver, Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection exposedSpans, Microsoft.VisualStudio.Text.Projection.ElisionBufferOptions options, Microsoft.VisualStudio.Utilities.IContentType contentType);
Parameters
projectionEditResolver
IProjectionEditResolver

The conflict resolver for this IProjectionBuffer. May be null.

exposedSpans
NormalizedSnapshotSpanCollection

The set of spans (from a single source buffer) that are initially exposed in the elision buffer.

options
ElisionBufferOptions

Options for this buffer.

contentType
IContentType

The IContentType for the new IElisionBuffer.

Returns

A non-null elision buffer.

Exceptions

contentType is null.

-or-

exposedSpans is null.

Applies to