IProjectionSnapshot::MapToSourceSnapshot Method (Int32)

 

Maps a position in the projection snapshot to the corresponding position in a source snapshot.

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

SnapshotPoint MapToSourceSnapshot(
	int position
)

Parameters

position
Type: System::Int32

The position in the projection snapshot.

Exception Condition
ArgumentOutOfRangeException

position is less than zero or greater than or equal to the length of the snapshot.

If the mapping is ambiguous (occurs on a source span seam), see GetTypicalInsertionPosition to choose a source buffer.

Return to top
Show: