IElisionSnapshot.MapFromSourceSnapshotToNearest(SnapshotPoint) 方法

定义

将源缓冲区中的快照点映射到省略快照中的相应点。 如果源缓冲区位置未在省略快照中公开,则返回公开的最近点。 如果未公开任何内容,则返回位置零。

public:
 Microsoft::VisualStudio::Text::SnapshotPoint MapFromSourceSnapshotToNearest(Microsoft::VisualStudio::Text::SnapshotPoint point);
public Microsoft.VisualStudio.Text.SnapshotPoint MapFromSourceSnapshotToNearest (Microsoft.VisualStudio.Text.SnapshotPoint point);
abstract member MapFromSourceSnapshotToNearest : Microsoft.VisualStudio.Text.SnapshotPoint -> Microsoft.VisualStudio.Text.SnapshotPoint
Public Function MapFromSourceSnapshotToNearest (point As SnapshotPoint) As SnapshotPoint

参数

point
SnapshotPoint

要映射的源缓冲区中的快照点。

返回

SnapshotPoint

省略快照中的位置。

例外

point 不属于此省略快照的源快照。

注解

如果未在省略快照中公开源缓冲区位置,则此方法将返回公开的最近点。 如果未公开任何内容,则返回位置零。

适用于