Freigeben über


ITextViewModel.GetNearestPointInVisualBuffer-Methode

Ruft einen Punkt im VisualBuffer ab, der dem angegebenen Punkt im Bearbeitungspuffer entspricht. Wenn der Punkt ausgeblendet ist oder über eine alternative Darstellung verfügt, wird der nächstgelegene Punkt abgerufen.

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

Parameter

Rückgabewert

Typ: Microsoft.VisualStudio.Text.SnapshotPoint
Ein Punkt im VisualBuffer, der dem angegebenen Punkt entspricht.

Hinweise

Die Definition von „in der Nähe“ hängt von der Implementierung des modells der Text ab.

.NET Framework-Sicherheit

Siehe auch

Referenz

ITextViewModel Schnittstelle

Microsoft.VisualStudio.Text.Editor-Namespace