ElisionSourceSpansChangedEventArgs Constructor (IProjectionSnapshot^, IProjectionSnapshot^, NormalizedSpanCollection^, NormalizedSpanCollection^, Object^)
Visual Studio 2015
Initialize a new instance of an ElisionSourceSpansChangedEventArgs object.
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. |
Show: