Compartilhar via


IElisionSnapshot.MapFromSourceSnapshotToNearest(SnapshotPoint) Method

Definition

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.

Applies to