ITextViewModel.GetNearestPointInVisualBuffer Method

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.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI (in Microsoft.VisualStudio.Text.UI.dll)

Syntax

'Declaration
Function GetNearestPointInVisualBuffer ( _
    editBufferPoint As SnapshotPoint _
) As SnapshotPoint
SnapshotPoint GetNearestPointInVisualBuffer(
    SnapshotPoint editBufferPoint
)
SnapshotPoint GetNearestPointInVisualBuffer(
    SnapshotPoint editBufferPoint
)
abstract GetNearestPointInVisualBuffer : 
        editBufferPoint:SnapshotPoint -> SnapshotPoint
function GetNearestPointInVisualBuffer(
    editBufferPoint : SnapshotPoint
) : SnapshotPoint

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.SnapshotPoint
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.

.NET Framework Security

See Also

Reference

ITextViewModel Interface

Microsoft.VisualStudio.Text.Editor Namespace