ISnapshotDifference::MapToSnapshot Method (SnapshotPoint, ITextSnapshot^, DifferenceMappingMode)

 

Map the specified SnapshotPoint to the specified ITextSnapshot.

Namespace:   Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

SnapshotPoint MapToSnapshot(
	SnapshotPoint point,
	ITextSnapshot^ target,
	DifferenceMappingMode mode = DifferenceMappingMode::LineColumn
)

Parameters

point
Type: Microsoft.VisualStudio.Text::SnapshotPoint

The point to map.

target
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The target snapshot.

mode
Type: Microsoft.VisualStudio.Text.Differencing::DifferenceMappingMode

The mode used when mapping between the left and right snapshots (or vice- versa) when point lies inside a difference.

Return Value

Type: Microsoft.VisualStudio.Text::SnapshotPoint

The snapshot point.

Return to top
Show: