ITextViewModel.GetNearestPointInVisualSnapshot(SnapshotPoint, ITextSnapshot, PointTrackingMode) Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
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
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.