ITextViewModel.GetNearestPointInVisualSnapshot(SnapshotPoint, ITextSnapshot, PointTrackingMode) Methode

Definition

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.

public:
 Microsoft::VisualStudio::Text::SnapshotPoint GetNearestPointInVisualSnapshot(Microsoft::VisualStudio::Text::SnapshotPoint editBufferPoint, Microsoft::VisualStudio::Text::ITextSnapshot ^ targetVisualSnapshot, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode);
public Microsoft.VisualStudio.Text.SnapshotPoint GetNearestPointInVisualSnapshot (Microsoft.VisualStudio.Text.SnapshotPoint editBufferPoint, Microsoft.VisualStudio.Text.ITextSnapshot targetVisualSnapshot, Microsoft.VisualStudio.Text.PointTrackingMode trackingMode);
abstract member GetNearestPointInVisualSnapshot : Microsoft.VisualStudio.Text.SnapshotPoint * Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.PointTrackingMode -> Microsoft.VisualStudio.Text.SnapshotPoint
Public Function GetNearestPointInVisualSnapshot (editBufferPoint As SnapshotPoint, targetVisualSnapshot As ITextSnapshot, trackingMode As PointTrackingMode) As SnapshotPoint

Parameter

editBufferPoint
SnapshotPoint

Ein Punkt in EditBuffer.

targetVisualSnapshot
ITextSnapshot

Die Momentaufnahme von VisualBuffer, zu der die Zuordnung erfolgen soll.

trackingMode
PointTrackingMode

Der PointTrackingMode , der bei der Übersetzung in targetvisualsnapshot verwendet werden soll.

Gibt zurück

SnapshotPoint

Ein Punkt im VisualBuffer , der dem angegebenen Punkt in targetvisualsnapshot entspricht.

Hinweise

Die Definition von "Next" hängt von der Implementierung des Text Ansichts Modells ab.

Gilt für