IElisionSnapshot.MapFromSourceSnapshotToNearest(SnapshotPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Maps from a snapshot point in the source buffer to the corresponding point in the elision snapshot. If the source buffer position is not exposed in the elision snapshot, returns the nearest point that is exposed. If nothing is exposed, returns position zero.
public:
Microsoft::VisualStudio::Text::SnapshotPoint MapFromSourceSnapshotToNearest(Microsoft::VisualStudio::Text::SnapshotPoint point);
public Microsoft.VisualStudio.Text.SnapshotPoint MapFromSourceSnapshotToNearest (Microsoft.VisualStudio.Text.SnapshotPoint point);
abstract member MapFromSourceSnapshotToNearest : Microsoft.VisualStudio.Text.SnapshotPoint -> Microsoft.VisualStudio.Text.SnapshotPoint
Public Function MapFromSourceSnapshotToNearest (point As SnapshotPoint) As SnapshotPoint
Parameters
- point
- SnapshotPoint
The snapshot point in a source buffer to map.
Returns
A position in the elision snapshot.
Exceptions
point
does not belong to the source snapshot of this elision snapshot.
Remarks
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.