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