Partilhar via


IBufferGraph.MapDownToInsertionPoint Method

Definition

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.

public:
 Nullable<Microsoft::VisualStudio::Text::SnapshotPoint> MapDownToInsertionPoint(Microsoft::VisualStudio::Text::SnapshotPoint position, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode, Predicate<Microsoft::VisualStudio::Text::ITextSnapshot ^> ^ match);
public Microsoft.VisualStudio.Text.SnapshotPoint? MapDownToInsertionPoint (Microsoft.VisualStudio.Text.SnapshotPoint position, Microsoft.VisualStudio.Text.PointTrackingMode trackingMode, Predicate<Microsoft.VisualStudio.Text.ITextSnapshot> match);
abstract member MapDownToInsertionPoint : Microsoft.VisualStudio.Text.SnapshotPoint * Microsoft.VisualStudio.Text.PointTrackingMode * Predicate<Microsoft.VisualStudio.Text.ITextSnapshot> -> Nullable<Microsoft.VisualStudio.Text.SnapshotPoint>
Public Function MapDownToInsertionPoint (position As SnapshotPoint, trackingMode As PointTrackingMode, match As Predicate(Of ITextSnapshot)) As Nullable(Of SnapshotPoint)

Parameters

position
SnapshotPoint

the position in a buffer in the graph.

trackingMode
PointTrackingMode

How position is tracked to the current snapshot if necessary.

match
Predicate<ITextSnapshot>

The predicate that identifies the target buffer.

Returns

A point in a snapshot of some source buffer, or null if position is not in this graph or does not map down to any buffer selected by match.

Exceptions

position.Snapshot or match is null.

trackingMode is not a valid PointTrackingMode.

Applies to