ProjectionSourceSpansChangedEventArgs Constructor (IProjectionSnapshot^, IProjectionSnapshot^, IList<ITrackingSpan^>^, IList<ITrackingSpan^>^, Int32, EditOptions, Object^)

 

Initializes a new instance of a ProjectionSourceSpansChangedEventArgs.

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

public:
ProjectionSourceSpansChangedEventArgs(
	IProjectionSnapshot^ beforeSnapshot,
	IProjectionSnapshot^ afterSnapshot,
	IList<ITrackingSpan^>^ insertedSpans,
	IList<ITrackingSpan^>^ deletedSpans,
	int spanPosition,
	EditOptions options,
	Object^ editTag
)

Parameters

beforeSnapshot
Type: Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^

The most recent IProjectionSnapshot before the change occurred.

afterSnapshot
Type: Microsoft.VisualStudio.Text.Projection::IProjectionSnapshot^

The IProjectionSnapshot immediately after the change occurred.

insertedSpans
Type: System.Collections.Generic::IList<ITrackingSpan^>^

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

deletedSpans
Type: System.Collections.Generic::IList<ITrackingSpan^>^

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

spanPosition
Type: System::Int32

The position at which the span changes occurred.

options
Type: Microsoft.VisualStudio.Text::EditOptions

The edit options that were applied to this change.

editTag
Type: System::Object^

An arbitrary object associated with this change.

Exception Condition
ArgumentNullException

beforeSnapshot, afterSnapshot, insertedSpans, or deletedSpansis null.

Return to top
Show: