IBufferGraph.MapUpToBuffer Method (SnapshotPoint, PointTrackingMode, PositionAffinity, ITextBuffer)
Maps a position in the current snapshot of some buffer that is a member of the buffer graph to a snapshot of some buffer.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Nullable<SnapshotPoint> MapUpToBuffer( SnapshotPoint point, PointTrackingMode trackingMode, PositionAffinity affinity, ITextBuffer targetBuffer )
- Type: Microsoft.VisualStudio.Text.PointTrackingMode
How point is tracked to the current snapshot if necessary.
- Type: Microsoft.VisualStudio.Text.PositionAffinity
If the mapping is ambiguous (the position is on a source span seam), determines whether the mapping should target the position immediately after the preceding character or immediately before the following character in the top buffer.
This setting has no effect if the mapping is unambiguous.
- Type: Microsoft.VisualStudio.Text.ITextBuffer
The buffer to which to map.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.