Partilhar via


Método IProjectionBufferFactoryService.CreateProjectionBuffer (IProjectionEditResolver, IList<Object>, ProjectionBufferOptions, IContentType)

Cria um IProjectionBuffer o objeto com um especificado IContentType e a lista especificada de ITrackingSpan objetos e/ou seqüências de caracteres literais.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (em Microsoft.VisualStudio.Text.Data.dll)

Sintaxe

'Declaração
Function CreateProjectionBuffer ( _
    projectionEditResolver As IProjectionEditResolver, _
    sourceSpans As IList(Of Object), _
    options As ProjectionBufferOptions, _
    contentType As IContentType _
) As IProjectionBuffer
IProjectionBuffer CreateProjectionBuffer(
    IProjectionEditResolver projectionEditResolver,
    IList<Object> sourceSpans,
    ProjectionBufferOptions options,
    IContentType contentType
)
IProjectionBuffer^ CreateProjectionBuffer(
    IProjectionEditResolver^ projectionEditResolver, 
    IList<Object^>^ sourceSpans, 
    ProjectionBufferOptions options, 
    IContentType^ contentType
)
abstract CreateProjectionBuffer : 
        projectionEditResolver:IProjectionEditResolver * 
        sourceSpans:IList<Object> * 
        options:ProjectionBufferOptions * 
        contentType:IContentType -> IProjectionBuffer
function CreateProjectionBuffer(
    projectionEditResolver : IProjectionEditResolver, 
    sourceSpans : IList<Object>, 
    options : ProjectionBufferOptions, 
    contentType : IContentType
) : IProjectionBuffer

Parâmetros

  • sourceSpans
    Tipo: IList<Object>

    O conjunto inicial de origem abrange para o IProjectionBuffer.

Valor de retorno

Tipo: Microsoft.VisualStudio.Text.Projection.IProjectionBuffer
Um buffer de projeção não-nulo.

Exceções

Exceção Condição
ArgumentNullException

sourceSpansou qualquer de seus elementos for nulluma referência nula (Nothing no Visual Basic).

ArgumentException

Um elemento do sourceSpans é uma seqüência de caracteres nem nem do ITrackingSpan.

- ou -

Uma extensão de rastreamento em sourceSpans é EdgeInclusive e não abrange o buffer inteiro, ou está EdgePositive e não limitam o final do seu buffer ou está EdgeNegative e não limitam o início do seu buffer.

Essas verificações não são executadas se o buffer de projeção foi criado com o PermissiveEdgeInclusiveSourceSpans opção.)

- ou -

Alguns do rastreamento abrange em sourceSpans se sobrepõem.

Segurança do .NET Framework

Consulte também

Referência

IProjectionBufferFactoryService Interface

Sobrecargas CreateProjectionBuffer

Namespace Microsoft.VisualStudio.Text.Projection