Udostępnij za pośrednictwem


ElisionSourceSpansChangedEventArgs Constructor

Definition

Initialize a new instance of an ElisionSourceSpansChangedEventArgs object.

public:
 ElisionSourceSpansChangedEventArgs(Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ beforeSnapshot, Microsoft::VisualStudio::Text::Projection::IProjectionSnapshot ^ afterSnapshot, Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ elidedSpans, Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ expandedSpans, System::Object ^ sourceToken);
public ElisionSourceSpansChangedEventArgs (Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot beforeSnapshot, Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot afterSnapshot, Microsoft.VisualStudio.Text.NormalizedSpanCollection elidedSpans, Microsoft.VisualStudio.Text.NormalizedSpanCollection expandedSpans, object sourceToken);
new Microsoft.VisualStudio.Text.Projection.ElisionSourceSpansChangedEventArgs : Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot * Microsoft.VisualStudio.Text.Projection.IProjectionSnapshot * Microsoft.VisualStudio.Text.NormalizedSpanCollection * Microsoft.VisualStudio.Text.NormalizedSpanCollection * obj -> Microsoft.VisualStudio.Text.Projection.ElisionSourceSpansChangedEventArgs
Public Sub New (beforeSnapshot As IProjectionSnapshot, afterSnapshot As IProjectionSnapshot, elidedSpans As NormalizedSpanCollection, expandedSpans As NormalizedSpanCollection, sourceToken As Object)

Parameters

beforeSnapshot
IProjectionSnapshot

The most recent IProjectionSnapshot before the change occurred.

afterSnapshot
IProjectionSnapshot

The IProjectionSnapshot immediately after the change occurred.

elidedSpans
NormalizedSpanCollection

Zero or more source spans that were hidden.

expandedSpans
NormalizedSpanCollection

Zero or more source spans that were expanded.

sourceToken
Object

An arbitrary object associated with this change.

Exceptions

One of beforeSnapshot, afterSnapshot, elidedSpans, or expandedSpans is null.

Applies to