Compartir a través de


ProjectionSourceBuffersChangedEventArgs Constructor

Definition

Initializes a new instance of a ProjectionSourceBuffersChangedEventArgs object.

public:
 ProjectionSourceBuffersChangedEventArgs(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, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ addedBuffers, System::Collections::Generic::IList<Microsoft::VisualStudio::Text::ITextBuffer ^> ^ removedBuffers, Microsoft::VisualStudio::Text::EditOptions options, System::Object ^ editTag);
public ProjectionSourceBuffersChangedEventArgs (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, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITextBuffer> addedBuffers, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITextBuffer> removedBuffers, Microsoft.VisualStudio.Text.EditOptions options, object editTag);
new Microsoft.VisualStudio.Text.Projection.ProjectionSourceBuffersChangedEventArgs : 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 * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITextBuffer> * System.Collections.Generic.IList<Microsoft.VisualStudio.Text.ITextBuffer> * Microsoft.VisualStudio.Text.EditOptions * obj -> Microsoft.VisualStudio.Text.Projection.ProjectionSourceBuffersChangedEventArgs
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)

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 in the list of source spans at which the buffer changes occurred.

addedBuffers
IList<ITextBuffer>

The list of added source ITextBuffer objects.

removedBuffers
IList<ITextBuffer>

The list of removed source ITextBuffer objects.

options
EditOptions

The edit options that were applied to this change.

editTag
Object

An arbitrary object associated with this change.

Exceptions

addedBuffers or removedBuffers is null.

Applies to