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
beforeSnapshot
Type: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshotThe most recent IProjectionSnapshot before the change occurred.
afterSnapshot
Type: Microsoft.VisualStudio.Text.Projection.IProjectionSnapshotThe IProjectionSnapshot immediately after the change occurred.
insertedSpans
Type: IList<ITrackingSpan>Zero or more source spans that were inserted into the IProjectionBuffer.
deletedSpans
Type: IList<ITrackingSpan>Zero or more source spans that were deleted from the IProjectionBuffer.
spanPosition
Type: Int32The position at which the span changes occurred.
options
Type: Microsoft.VisualStudio.Text.EditOptionsThe edit options that were applied to this change.
editTag
Type: ObjectAn 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.