Share via


ProjectionSourceBuffersChangedEventArgs Constructor

Initializes a new instance of a ProjectionSourceBuffersChangedEventArgs object.

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

Syntax

'Declaration
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
)

Parameters

  • spanPosition
    Type: System.Int32

    The position in the list of source spans at which the buffer changes occurred.

  • editTag
    Type: System.Object

    An arbitrary object associated with this change.

Exceptions

Exception Condition
ArgumentNullException

insertedSpans or deletedSpans oraddedBuffers or removedBuffers is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ProjectionSourceBuffersChangedEventArgs Class

Microsoft.VisualStudio.Text.Projection Namespace