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)
Syntax
'Declaration
Function CreateElisionBuffer ( _
projectionEditResolver As IProjectionEditResolver, _
exposedSpans As NormalizedSnapshotSpanCollection, _
options As ElisionBufferOptions, _
contentType As IContentType _
) As IElisionBuffer
IElisionBuffer CreateElisionBuffer(
IProjectionEditResolver projectionEditResolver,
NormalizedSnapshotSpanCollection exposedSpans,
ElisionBufferOptions options,
IContentType contentType
)
IElisionBuffer^ CreateElisionBuffer(
IProjectionEditResolver^ projectionEditResolver,
NormalizedSnapshotSpanCollection^ exposedSpans,
ElisionBufferOptions options,
IContentType^ contentType
)
abstract CreateElisionBuffer :
projectionEditResolver:IProjectionEditResolver *
exposedSpans:NormalizedSnapshotSpanCollection *
options:ElisionBufferOptions *
contentType:IContentType -> IElisionBuffer
function CreateElisionBuffer(
projectionEditResolver : IProjectionEditResolver,
exposedSpans : NormalizedSnapshotSpanCollection,
options : ElisionBufferOptions,
contentType : IContentType
) : IElisionBuffer
Parameters
- projectionEditResolver
Type: Microsoft.VisualStudio.Text.Projection.IProjectionEditResolver
The conflict resolver for this IProjectionBuffer. May be nulla null reference (Nothing in Visual Basic).
- 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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | contentType is nulla null reference (Nothing in Visual Basic). -or- exposedSpans is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- 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.