VirtualSnapshotPoint Constructor (SnapshotPoint, Int32)
Visual Studio 2015
Initializes a new instance of a VirtualSnapshotPoint at the specified position, with the specified number of virtual spaces.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Parameters
- position
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The position of the virtual snapshot point.
- virtualSpaces
-
Type:
System::Int32
The number of virtual spaces after position.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | virtualSpaces is negative, or the position plus the number of virtual spaces is less than the position. |
| ArgumentException | virtualSpaces is not zero and the position does not correspond to the end of the line. |
virtualSpaces must be zero unless position corresponds to a location at the end of a ITextSnapshotLine.
Show: