NormalizedSnapshotSpanCollection Constructor (IEnumerable<SnapshotSpan>^)
Visual Studio 2015
Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of SnapshotSpan objects.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- snapshotSpans
-
Type:
System.Collections.Generic::IEnumerable<SnapshotSpan>^
A set of SnapshotSpan objects.
| Exception | Condition |
|---|---|
| ArgumentNullException | snapshotSpans is null. |
| ArgumentException | A SnapshotSpan is uninitialized, or it does not refer to the same ITextSnapshot as the other snapshot spans, or it refers to an uninitialized ITextSnapshot. |
Show: