ProjectionSourceSpansChangedEventArgs Constructor (IProjectionSnapshot^, IProjectionSnapshot^, IList<ITrackingSpan^>^, IList<ITrackingSpan^>^, Int32, EditOptions, Object^)
Visual Studio 2015
Initializes a new instance of a ProjectionSourceSpansChangedEventArgs.
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. |
Show: