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)

IElisionBuffer^ CreateElisionBuffer(
	IProjectionEditResolver^ projectionEditResolver,
	NormalizedSnapshotSpanCollection^ exposedSpans,
	ElisionBufferOptions options,
	IContentType^ contentType
)

Parameters

projectionEditResolver
Type: Microsoft.VisualStudio.Text.Projection::IProjectionEditResolver^

The conflict resolver for this IProjectionBuffer. May be null.

exposedSpans
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

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

options
Type: Microsoft.VisualStudio.Text.Projection::ElisionBufferOptions

Options for this buffer.

contentType
Type: Microsoft.VisualStudio.Utilities::IContentType^

The IContentType for the new IElisionBuffer.

Return Value

Type: Microsoft.VisualStudio.Text.Projection::IElisionBuffer^

A non-null elision buffer.

Exception Condition
ArgumentNullException

contentType is null.

-or-

exposedSpans is null.

Return to top
Show: