Partilhar via


ProjectionSourceSpansChangedEventArgs Constructor

Definition

Initializes a new instance of a ProjectionSourceSpansChangedEventArgs.

public:
 ProjectionSourceSpansChangedEventArgs(Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ afterSnapshot, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::ITrackingSpan ^> ^ insertedSpans, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::ITrackingSpan ^> ^ deletedSpans, int spanPosition, Microsoft::VisualStudio::Text::EditOptions options, System::Object ^ editTag);
public ProjectionSourceSpansChangedEventArgs (Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot beforeSnapshot, Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot afterSnapshot, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITrackingSpan> insertedSpans, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITrackingSpan> deletedSpans, int spanPosition, Microsoft.VisualStudio.Text.EditOptions options, object editTag);
new Microsoft.VisualStudio.Text.Projection.ProjectionSourceSpansChangedEventArgs : Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot * Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITrackingSpan> * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITrackingSpan> * int * Microsoft.VisualStudio.Text.EditOptions * obj -> Microsoft.VisualStudio.Text.Projection.ProjectionSourceSpansChangedEventArgs
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)

Parameters

beforeSnapshot
IProjectionSnapshot

The most recent IProjectionSnapshot before the change occurred.

afterSnapshot
IProjectionSnapshot

The IProjectionSnapshot immediately after the change occurred.

insertedSpans
IList<ITrackingSpan>

Zero or more source spans that were inserted into the IProjectionBuffer.

deletedSpans
IList<ITrackingSpan>

Zero or more source spans that were deleted from the IProjectionBuffer.

spanPosition
Int32

The position at which the span changes occurred.

options
EditOptions

The edit options that were applied to this change.

editTag
Object

An arbitrary object associated with this change.

Exceptions

One of the parameters: beforeSnapshot, afterSnapshot, insertedSpans, or deletedSpansis null.

Applies to