IBufferGraph::MapDownToInsertionPoint Method (SnapshotPoint, PointTrackingMode, Predicate<ITextSnapshot^>^)
Visual Studio 2015
Maps a position in some buffer in the graph to a position in a matching buffer that is lower in the graph and to which an insertion would be routed. Source buffers are considered to be lower than the projection buffers that consume them.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Nullable<SnapshotPoint> MapDownToInsertionPoint( SnapshotPoint position, PointTrackingMode trackingMode, Predicate<ITextSnapshot^>^ match )
Parameters
- position
-
Type:
Microsoft.VisualStudio.Text::SnapshotPoint
The position in a buffer in the graph.
- trackingMode
-
Type:
Microsoft.VisualStudio.Text::PointTrackingMode
How position is tracked to the current snapshot if necessary.
- match
-
Type:
System::Predicate<ITextSnapshot^>^
The predicate that identifies the target buffer.
| Exception | Condition |
|---|---|
| ArgumentNullException | position.Snapshot or match is null. |
| ArgumentOutOfRangeException | trackingMode is not a valid PointTrackingMode. |
Show: