Partager via


NormalizedSnapshotSpanCollection Constructor (IList<SnapshotSpan>)

Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of Span objects.

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

Syntax

'Declaration
Public Sub New ( _
    snapshotSpans As IList(Of SnapshotSpan) _
)
public NormalizedSnapshotSpanCollection(
    IList<SnapshotSpan> snapshotSpans
)
public:
NormalizedSnapshotSpanCollection(
    IList<SnapshotSpan>^ snapshotSpans
)
new : 
        snapshotSpans:IList<SnapshotSpan> -> NormalizedSnapshotSpanCollection
public function NormalizedSnapshotSpanCollection(
    snapshotSpans : IList<SnapshotSpan>
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

snapshot or spans is nulla null reference (Nothing in Visual Basic).

ArgumentException

A SnapshotSpan is uninitialized, or it does not refer to the same T[:Microsoft.VisualStudio.Text.ITextSnapshot] as the other snapshot spans, or it refers to an uninitialized ITextSnapshot.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

NormalizedSnapshotSpanCollection Overload

Microsoft.VisualStudio.Text Namespace