ElisionSourceSpansChangedEventArgs Constructor
Initialize a new instance of an ElisionSourceSpansChangedEventArgs object.
Namespace: Microsoft.VisualStudio.Text.Projection
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Syntax
'Декларация
Public Sub New ( _
beforeSnapshot As IProjectionSnapshot, _
afterSnapshot As IProjectionSnapshot, _
elidedSpans As NormalizedSpanCollection, _
expandedSpans As NormalizedSpanCollection, _
sourceToken As Object _
)
public ElisionSourceSpansChangedEventArgs(
IProjectionSnapshot beforeSnapshot,
IProjectionSnapshot afterSnapshot,
NormalizedSpanCollection elidedSpans,
NormalizedSpanCollection expandedSpans,
Object sourceToken
)
public:
ElisionSourceSpansChangedEventArgs(
IProjectionSnapshot^ beforeSnapshot,
IProjectionSnapshot^ afterSnapshot,
NormalizedSpanCollection^ elidedSpans,
NormalizedSpanCollection^ expandedSpans,
Object^ sourceToken
)
new :
beforeSnapshot:IProjectionSnapshot *
afterSnapshot:IProjectionSnapshot *
elidedSpans:NormalizedSpanCollection *
expandedSpans:NormalizedSpanCollection *
sourceToken:Object -> ElisionSourceSpansChangedEventArgs
public function ElisionSourceSpansChangedEventArgs(
beforeSnapshot : IProjectionSnapshot,
afterSnapshot : IProjectionSnapshot,
elidedSpans : NormalizedSpanCollection,
expandedSpans : NormalizedSpanCollection,
sourceToken : Object
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | beforeSnapshot, afterSnapshot, elidedSpans, or expandedSpans is 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.