Condividi tramite


IProjectionBufferFactoryService.CreateProjectionBuffer Method

Definition

Overloads

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)

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

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<System::Object ^> ^ sourceSpans, Microsoft::VisualStudio::Text::Projection::ProjectionBufferOptions options);
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

The conflict resolver for this IProjectionBuffer. May be null.

sourceSpans
IList<Object>

The initial set of source spans for the IProjectionBuffer.

options
ProjectionBufferOptions

Options for this buffer.

Returns

A non-null projection buffer.

Exceptions

sourceSpans or any of its elements is null.

Any of the tracking spans in sourceSpans overlap.

Applies to

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<System::Object ^> ^ sourceSpans, Microsoft::VisualStudio::Text::Projection::ProjectionBufferOptions options, Microsoft::VisualStudio::Utilities::IContentType ^ contentType);
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

The conflict resolver for this IProjectionBuffer. May be null.

sourceSpans
IList<Object>

The initial set of source spans for the IProjectionBuffer.

options
ProjectionBufferOptions

Options for this buffer.

contentType
IContentType

The IContentType for the new IProjectionBuffer.

Returns

A non-null projection buffer.

Exceptions

sourceSpans or any of its elements is null.

Some of the tracking spans in sourceSpans overlap.

Applies to