Partager via


IProjectionBufferFactoryService.CreateElisionBuffer Method

Definition

Overloads

CreateElisionBuffer(IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions)

Create an ElisionBuffer with the default projection IContentType and initialized to the provided 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)

Create an ElisionBuffer with the default projection IContentType and initialized to 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);
public Microsoft.VisualStudio.Text.Projection.IElisionBuffer CreateElisionBuffer (Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver projectionEditResolver, Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection exposedSpans, Microsoft.VisualStudio.Text.Projection.ElisionBufferOptions options);
abstract member CreateElisionBuffer : Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver * Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection * Microsoft.VisualStudio.Text.Projection.ElisionBufferOptions -> Microsoft.VisualStudio.Text.Projection.IElisionBuffer
Public Function CreateElisionBuffer (projectionEditResolver As IProjectionEditResolver, exposedSpans As NormalizedSnapshotSpanCollection, options As ElisionBufferOptions) As IElisionBuffer

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.

Applies to

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);
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);
abstract member CreateElisionBuffer : Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver * Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection * Microsoft.VisualStudio.Text.Projection.ElisionBufferOptions * Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.Text.Projection.IElisionBuffer
Public Function CreateElisionBuffer (projectionEditResolver As IProjectionEditResolver, exposedSpans As NormalizedSnapshotSpanCollection, options As ElisionBufferOptions, contentType As IContentType) As IElisionBuffer

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

exposedSpans is null.

Applies to