Sdílet prostřednictvím


ITextViewModel.GetNearestPointInVisualBuffer(SnapshotPoint) Method

Definition

Gets a point in the VisualBuffer that corresponds to the specified point in the edit buffer. If the point is hidden or has an alternative representation, gets the nearest point to it.

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

Parameters

editBufferPoint
SnapshotPoint

A point in the EditBuffer.

Returns

A point in the VisualBuffer that corresponds to the given point.

Remarks

The definition of "nearest" depends on the implementation of the text view model.

Applies to