IProjectionBufferFactoryService.CreateElisionBuffer Method (IProjectionEditResolver, NormalizedSnapshotSpanCollection, ElisionBufferOptions)
Creates an elision buffer with the default projection IContentType and initialized to the specified 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
'Declaración
Function CreateElisionBuffer ( _
projectionEditResolver As IProjectionEditResolver, _
exposedSpans As NormalizedSnapshotSpanCollection, _
options As ElisionBufferOptions _
) As IElisionBuffer
IElisionBuffer CreateElisionBuffer(
IProjectionEditResolver projectionEditResolver,
NormalizedSnapshotSpanCollection exposedSpans,
ElisionBufferOptions options
)
IElisionBuffer^ CreateElisionBuffer(
IProjectionEditResolver^ projectionEditResolver,
NormalizedSnapshotSpanCollection^ exposedSpans,
ElisionBufferOptions options
)
abstract CreateElisionBuffer :
projectionEditResolver:IProjectionEditResolver *
exposedSpans:NormalizedSnapshotSpanCollection *
options:ElisionBufferOptions -> IElisionBuffer
function CreateElisionBuffer(
projectionEditResolver : IProjectionEditResolver,
exposedSpans : NormalizedSnapshotSpanCollection,
options : ElisionBufferOptions
) : 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.
Return Value
Type: Microsoft.VisualStudio.Text.Projection.IElisionBuffer
A non-nulla null reference (Nothing in Visual Basic) elision buffer.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | exposedSpans is null. |
.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.