NormalizedSnapshotSpanCollection Constructor (ITextSnapshot^, IEnumerable<Span>^)
Visual Studio 2015
Initializes a new instance of a NormalizedSnapshotSpanCollection from a list of Span objects and a ITextSnapshot.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
public:
NormalizedSnapshotSpanCollection(
ITextSnapshot^ snapshot,
IEnumerable<Span>^ spans
)
Parameters
- snapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The ITextSnapshot to apply to spans.
- spans
-
Type:
System.Collections.Generic::IEnumerable<Span>^
A set of Span objects.
| Exception | Condition |
|---|---|
| ArgumentNullException | snapshot or spans is null. |
| ArgumentException | The spans in spans extend beyond the end of snapshot. |
Show: