Compartilhar via


Construtor ProjectionSourceBuffersChangedEventArgs

Inicializa uma nova instância de um ProjectionSourceBuffersChangedEventArgs objeto.

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

Sintaxe

'Declaração
Public Sub New ( _
    beforeSnapshot As IProjectionSnapshot, _
    afterSnapshot As IProjectionSnapshot, _
    insertedSpans As IList(Of ITrackingSpan), _
    deletedSpans As IList(Of ITrackingSpan), _
    spanPosition As Integer, _
    addedBuffers As IList(Of ITextBuffer), _
    removedBuffers As IList(Of ITextBuffer), _
    options As EditOptions, _
    editTag As Object _
)
public ProjectionSourceBuffersChangedEventArgs(
    IProjectionSnapshot beforeSnapshot,
    IProjectionSnapshot afterSnapshot,
    IList<ITrackingSpan> insertedSpans,
    IList<ITrackingSpan> deletedSpans,
    int spanPosition,
    IList<ITextBuffer> addedBuffers,
    IList<ITextBuffer> removedBuffers,
    EditOptions options,
    Object editTag
)
public:
ProjectionSourceBuffersChangedEventArgs(
    IProjectionSnapshot^ beforeSnapshot, 
    IProjectionSnapshot^ afterSnapshot, 
    IList<ITrackingSpan^>^ insertedSpans, 
    IList<ITrackingSpan^>^ deletedSpans, 
    int spanPosition, 
    IList<ITextBuffer^>^ addedBuffers, 
    IList<ITextBuffer^>^ removedBuffers, 
    EditOptions options, 
    Object^ editTag
)
new : 
        beforeSnapshot:IProjectionSnapshot * 
        afterSnapshot:IProjectionSnapshot * 
        insertedSpans:IList<ITrackingSpan> * 
        deletedSpans:IList<ITrackingSpan> * 
        spanPosition:int * 
        addedBuffers:IList<ITextBuffer> * 
        removedBuffers:IList<ITextBuffer> * 
        options:EditOptions * 
        editTag:Object -> ProjectionSourceBuffersChangedEventArgs
public function ProjectionSourceBuffersChangedEventArgs(
    beforeSnapshot : IProjectionSnapshot, 
    afterSnapshot : IProjectionSnapshot, 
    insertedSpans : IList<ITrackingSpan>, 
    deletedSpans : IList<ITrackingSpan>, 
    spanPosition : int, 
    addedBuffers : IList<ITextBuffer>, 
    removedBuffers : IList<ITextBuffer>, 
    options : EditOptions, 
    editTag : Object
)

Parâmetros

  • spanPosition
    Tipo: Int32

    A posição na lista de origem abrange no qual ocorreram as alterações de buffer.

  • editTag
    Tipo: Object

    Um objeto arbitrário associado a essa alteração.

Exceções

Exceção Condição
ArgumentNullException

insertedSpansor deletedSpans or addedBuffers or removedBuffers is nulluma referência nula (Nothing no Visual Basic).

Segurança do .NET Framework

Consulte também

Referência

ProjectionSourceBuffersChangedEventArgs Classe

Namespace Microsoft.VisualStudio.Text.Projection