SnapshotSpan Constructor (SnapshotPoint, Int32)
Visual Studio 2015
Initializes a new instance of a SnapshotSpan from an existing SnapshotPoint and a specified length.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- start
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The starting snapshot point.
- length
-
Type:
System::Int32
The length of the span.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | length is negative, or start + length is greater than the length of the snapshot. |
Show: