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)

public:
VirtualSnapshotPoint TranslateTo(
	ITextSnapshot^ snapshot
)

Parameters

snapshot
Type: Microsoft.VisualStudio.Text::ITextSnapshot^

The target snapshot.

Return Value

Type: Microsoft.VisualStudio.Text::VirtualSnapshotPoint

The corresponding VirtualSnapshotPoint in snapshot.

Exception Condition
ArgumentException

snapshot is for an earlier snapshot.

Return to top
Show: