VirtualSnapshotPoint Constructor (ITextSnapshotLine^, Int32)
Visual Studio 2015
Initializes a new instance of a VirtualSnapshotPoint at the specified offset of the specified line, placing the point in virtual space if necessary.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Parameters
- line
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshotLine^
The line on which to place the point.
- offset
-
Type:
System::Int32
The column (zero-based) of the point.
| Exception | Condition |
|---|---|
| ArgumentNullException | line is null. |
| ArgumentOutOfRangeException | column is negative, or the start position plus the column is less than the start position. |
offset is a character offset from the start of the line. It does not correspond to a column position (for example, if the line consists of a single tab and the offset is 2, then the resulting VirtualSnapshotPoint will be one "space" past the end of the line).
Show: