다음을 통해 공유


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

  • 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

See Also

Reference

ElisionSourceSpansChangedEventArgs Class

Microsoft.VisualStudio.Text.Projection Namespace