Compartilhar via


ProjectionSourceSpansChangedEventArgs Constructor

Initializes a new instance of a ProjectionSourceSpansChangedEventArgs.

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, _
    options As EditOptions, _
    editTag As Object _
)
public ProjectionSourceSpansChangedEventArgs(
    IProjectionSnapshot beforeSnapshot,
    IProjectionSnapshot afterSnapshot,
    IList<ITrackingSpan> insertedSpans,
    IList<ITrackingSpan> deletedSpans,
    int spanPosition,
    EditOptions options,
    Object editTag
)
public:
ProjectionSourceSpansChangedEventArgs(
    IProjectionSnapshot^ beforeSnapshot, 
    IProjectionSnapshot^ afterSnapshot, 
    IList<ITrackingSpan^>^ insertedSpans, 
    IList<ITrackingSpan^>^ deletedSpans, 
    int spanPosition, 
    EditOptions options, 
    Object^ editTag
)
new : 
        beforeSnapshot:IProjectionSnapshot * 
        afterSnapshot:IProjectionSnapshot * 
        insertedSpans:IList<ITrackingSpan> * 
        deletedSpans:IList<ITrackingSpan> * 
        spanPosition:int * 
        options:EditOptions * 
        editTag:Object -> ProjectionSourceSpansChangedEventArgs
public function ProjectionSourceSpansChangedEventArgs(
    beforeSnapshot : IProjectionSnapshot, 
    afterSnapshot : IProjectionSnapshot, 
    insertedSpans : IList<ITrackingSpan>, 
    deletedSpans : IList<ITrackingSpan>, 
    spanPosition : int, 
    options : EditOptions, 
    editTag : Object
)

Parameters

  • spanPosition
    Type: Int32

    The position at which the span changes occurred.

  • editTag
    Type: Object

    An arbitrary object associated with this change.

Exceptions

Exception Condition
ArgumentNullException

beforeSnapshot, afterSnapshot, insertedSpans, or deletedSpansis nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ProjectionSourceSpansChangedEventArgs Class

Microsoft.VisualStudio.Text.Projection Namespace