IProjectionBufferFactoryService.CreateProjectionBuffer Method (IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType)
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
IProjectionBuffer CreateProjectionBuffer( IProjectionEditResolver projectionEditResolver, IList<Object> sourceSpans, ProjectionBufferOptions options, IContentType contentType )
- Type: Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver
The conflict resolver for this IProjectionBuffer. May be null.
- Type: IList<Object>
The initial set of source spans for the IProjectionBuffer.
- Type: Microsoft.VisualStudio.Text.Projection.ProjectionBufferOptions
Options for this buffer.
Return ValueType: Microsoft.VisualStudio.Text.Projection.IProjectionBuffer
A non-null projection buffer.
sourceSpans or any of its elements is null.
An element of sourceSpans is neither a string nor an ITrackingSpan.
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.)
Some of the tracking spans in sourceSpans overlap.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.