ElisionSourceSpansChangedEventArgs Constructor (IProjectionSnapshot^, IProjectionSnapshot^, NormalizedSpanCollection^, NormalizedSpanCollection^, Object^)

 

Initialize a new instance of an ElisionSourceSpansChangedEventArgs object.

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

public:
ElisionSourceSpansChangedEventArgs(
	IProjectionSnapshot^ beforeSnapshot,
	IProjectionSnapshot^ afterSnapshot,
	NormalizedSpanCollection^ elidedSpans,
	NormalizedSpanCollection^ expandedSpans,
	Object^ sourceToken
)

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.

elidedSpans
Type: Microsoft.VisualStudio.Text::NormalizedSpanCollection^

Zero or more source spans that were hidden.

expandedSpans
Type: Microsoft.VisualStudio.Text::NormalizedSpanCollection^

Zero or more source spans that were expanded.

sourceToken
Type: System::Object^

An arbitrary object associated with this change.

Exception Condition
ArgumentNullException

beforeSnapshot, afterSnapshot, elidedSpans, or expandedSpans is null.

Return to top
Show: