VirtualSnapshotSpan Constructor (VirtualSnapshotPoint, VirtualSnapshotPoint)
Visual Studio 2015
Initializes a new instance of a VirtualSnapshotSpan from the specified start and end points.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Parameters
- start
-
Type:
Microsoft.VisualStudio.Text::VirtualSnapshotPoint
The start point.
- end
-
Type:
Microsoft.VisualStudio.Text::VirtualSnapshotPoint
The end point, which must be from the same ITextSnapshot as the start point.
| Exception | Condition |
|---|---|
| ArgumentException | The snapshot points belong to different ITextSnapshot objects. |
| ArgumentOutOfRangeException | The end point comes before the start point. |
Show: