VirtualSnapshotPoint.TranslateTo-Methode (ITextSnapshot)
Übersetzt diesen Punkt in der angegebenen Momentaufnahme.
Namespace: Microsoft.VisualStudio.Text
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Syntax
'Declaration
Public Function TranslateTo ( _
snapshot As ITextSnapshot _
) As VirtualSnapshotPoint
public VirtualSnapshotPoint TranslateTo(
ITextSnapshot snapshot
)
public:
VirtualSnapshotPoint TranslateTo(
ITextSnapshot^ snapshot
)
member TranslateTo :
snapshot:ITextSnapshot -> VirtualSnapshotPoint
public function TranslateTo(
snapshot : ITextSnapshot
) : VirtualSnapshotPoint
Parameter
snapshot
Typ: Microsoft.VisualStudio.Text.ITextSnapshotDie Zielmomentaufnahme.
Rückgabewert
Typ: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
Der entsprechende VirtualSnapshotPoint in snapshot.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentException | snapshot ist für eine frühere Momentaufnahme. |
.NET Framework-Sicherheit
- Volle Vertrauenswürdigkeit für den unmittelbaren Aufrufer. Dieser Member kann von nur teilweise vertrauenswürdigem Code nicht verwendet werden. Weitere Informationen finden Sie unter Verwenden von Bibliotheken aus teilweise vertrauenswürdigem Code.