IElisionSnapshot::MapFromSourceSnapshotToNearest Method (SnapshotPoint)

 

Maps from a snapshot point in the source buffer to the corresponding point in the elision snapshot.

Namespace:   Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

SnapshotPoint MapFromSourceSnapshotToNearest(
	SnapshotPoint point
)

Parameters

point
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The snapshot point in a source buffer to map.

Return Value

Type: Microsoft.VisualStudio.Text::SnapshotPoint

A position in the elision snapshot.

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.

Return to top
Show: