ITextViewModel.GetNearestPointInVisualBuffer(SnapshotPoint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.