IBufferGraph.MapDownToInsertionPoint 方法

定义

将关系图中某个缓冲区中的位置映射到关系图中较低位置的匹配缓冲区中的某个位置,并将其路由到该位置。 源缓冲区被视为低于使用它们的投影缓冲区。

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)

参数

position
SnapshotPoint

在图中的缓冲区中的位置。

trackingMode
PointTrackingMode

position如果需要,如何跟踪当前快照。

match
Predicate<ITextSnapshot>

用于标识目标缓冲区的谓词。

返回

Nullable<SnapshotPoint>

某个源缓冲区的快照中的一个点; 如果不在此关系图中,则为 null; 否则,不 position 会映射到所选的任何缓冲区 match

例外

position.快照或 match 为 null。

trackingMode 不是有效的 PointTrackingMode

适用于