SnapshotPoint.TranslateTo(ITextSnapshot, PointTrackingMode) Methode

Definition

Übersetzt diesen Momentaufnahme Punkt in eine andere Momentaufnahme desselben ITextBuffer .

public:
 Microsoft::VisualStudio::Text::SnapshotPoint TranslateTo(Microsoft::VisualStudio::Text::ITextSnapshot ^ targetSnapshot, Microsoft::VisualStudio::Text::PointTrackingMode trackingMode);
public Microsoft.VisualStudio.Text.SnapshotPoint TranslateTo (Microsoft.VisualStudio.Text.ITextSnapshot targetSnapshot, Microsoft.VisualStudio.Text.PointTrackingMode trackingMode);
member this.TranslateTo : Microsoft.VisualStudio.Text.ITextSnapshot * Microsoft.VisualStudio.Text.PointTrackingMode -> Microsoft.VisualStudio.Text.SnapshotPoint
Public Function TranslateTo (targetSnapshot As ITextSnapshot, trackingMode As PointTrackingMode) As SnapshotPoint

Parameter

targetSnapshot
ITextSnapshot

Die Momentaufnahme, in die übersetzt werden soll.

trackingMode
PointTrackingMode

Der in der Übersetzung zu verwendende PointTrackingMode.

Gibt zurück

SnapshotPoint

Ein neuer Momentaufnahmepunkt, der der angeforderten Momentaufnahme zugeordnet wurde.

Ausnahmen

targetSnapshot ist NULL.

targetSnapshot verweist nicht auf dieselbe ITextBuffer wie dieser Momentaufnahmepunkt.

Gilt für