IProjectionBufferFactoryService.CreateProjectionBuffer IProjectionBufferFactoryService.CreateProjectionBuffer IProjectionBufferFactoryService.CreateProjectionBuffer Method

Definition

Overloads

CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions)

Creates an IProjectionBuffer object with the default projection IContentType and the specified list of source spans.

CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType)

Creates an IProjectionBuffer object with a specified IContentType and the specified list of ITrackingSpan objects and/or literal strings.

CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions)

Creates an IProjectionBuffer object with the default projection IContentType and the specified list of source spans.

public Microsoft.VisualStudio.Text.Projection.IProjectionBuffer CreateProjectionBuffer (Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver projectionEditResolver, System.Collections.Generic.IList<object> sourceSpans, Microsoft.VisualStudio.Text.Projection.ProjectionBufferOptions options);
abstract member CreateProjectionBuffer : Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver * System.Collections.Generic.IList<obj> * Microsoft.VisualStudio.Text.Projection.ProjectionBufferOptions -> Microsoft.VisualStudio.Text.Projection.IProjectionBuffer
Public Function CreateProjectionBuffer (projectionEditResolver As IProjectionEditResolver, sourceSpans As IList(Of Object), options As ProjectionBufferOptions) As IProjectionBuffer
Parameters
projectionEditResolver
IProjectionEditResolver IProjectionEditResolver IProjectionEditResolver

The conflict resolver for this IProjectionBuffer. May be null.

sourceSpans
IList<Object>

The initial set of source spans for the IProjectionBuffer.

Returns

A non-null projection buffer.

Exceptions

An element of sourceSpans is neither a string nor an ITrackingSpan.

-or-

A tracking span in sourceSpans is EdgeInclusive and does not cover its entire buffer, or is EdgePositive and does not abut the end of its buffer, or is EdgeNegative and does not abut the beginning of its buffer.

-or-

Any of the tracking spans in sourceSpans overlap.

CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType) CreateProjectionBuffer(IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType)

Creates an IProjectionBuffer object with a specified IContentType and the specified list of ITrackingSpan objects and/or literal strings.

public Microsoft.VisualStudio.Text.Projection.IProjectionBuffer CreateProjectionBuffer (Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver projectionEditResolver, System.Collections.Generic.IList<object> sourceSpans, Microsoft.VisualStudio.Text.Projection.ProjectionBufferOptions options, Microsoft.VisualStudio.Utilities.IContentType contentType);
abstract member CreateProjectionBuffer : Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver * System.Collections.Generic.IList<obj> * Microsoft.VisualStudio.Text.Projection.ProjectionBufferOptions * Microsoft.VisualStudio.Utilities.IContentType -> Microsoft.VisualStudio.Text.Projection.IProjectionBuffer
Public Function CreateProjectionBuffer (projectionEditResolver As IProjectionEditResolver, sourceSpans As IList(Of Object), options As ProjectionBufferOptions, contentType As IContentType) As IProjectionBuffer
Parameters
projectionEditResolver
IProjectionEditResolver IProjectionEditResolver IProjectionEditResolver

The conflict resolver for this IProjectionBuffer. May be null.

sourceSpans
IList<Object>

The initial set of source spans for the IProjectionBuffer.

Returns

A non-null projection buffer.

Exceptions

An element of sourceSpans is neither a string nor an ITrackingSpan.

-or-

A tracking span in sourceSpans is EdgeInclusive and does not cover its entire buffer, or is EdgePositive and does not abut the end of its buffer, or is EdgeNegative and does not abut the beginning of its buffer.

These checks are not performed if the projection buffer was created with the PermissiveEdgeInclusiveSourceSpans option.)

-or-

Some of the tracking spans in sourceSpans overlap.

Applies to