VirtualSnapshotSpan::TranslateTo Method (ITextSnapshot^)
Visual Studio 2015
Translates this span to the specified snapshot.
Assembly: Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)
Parameters
- snapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The target snapshot.
Return Value
Type: Microsoft.VisualStudio.Text::VirtualSnapshotSpanThe corresponding VirtualSnapshotSpan in snapshot.
| Exception | Condition |
|---|---|
| ArgumentException | snapshot is for an earlier snapshot. |
Show: