SnapshotSpan Constructor (ITextSnapshot^, Span)
Visual Studio 2015
Initializes a new instance of a SnapshotSpan with the specified snapshot and span.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- snapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The ITextSnapshot on which to base the snapshot span.
- span
-
Type:
Microsoft.VisualStudio.Text::Span
The span of the snapshot span.
| Exception | Condition |
|---|---|
| ArgumentNullException | snapshot is null. |
| ArgumentOutOfRangeException | span.End is greater than snapshot.Length. |
Show: