IElisionSnapshot::MapFromSourceSnapshotToNearest Method (SnapshotPoint)
Visual Studio 2015
Maps from a snapshot point in the source buffer to the corresponding point in the elision snapshot.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- point
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The snapshot point in a source buffer to map.
| Exception | Condition |
|---|---|
| ArgumentException | point does not belong to the source snapshot of this elision snapshot. |
If the source buffer position is not exposed in the elision snapshot, this method returns the nearest point that is exposed. If nothing is exposed, it returns position zero.
Show: