Share via


VirtualSnapshotPoint.TranslateTo Method (ITextSnapshot)

Translates this point to the specified snapshot.

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

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.VirtualSnapshotPoint
The corresponding VirtualSnapshotPoint in snapshot.

Exceptions

Exception Condition
ArgumentException

snapshot is for an earlier snapshot.

.NET Framework Security

See Also

Reference

VirtualSnapshotPoint Structure

TranslateTo Overload

Microsoft.VisualStudio.Text Namespace