Bagikan melalui


VirtualSnapshotSpan.TranslateTo Method (ITextSnapshot)

Translates this span 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 VirtualSnapshotSpan
public VirtualSnapshotSpan TranslateTo(
    ITextSnapshot snapshot
)
public:
VirtualSnapshotSpan TranslateTo(
    ITextSnapshot^ snapshot
)
member TranslateTo : 
        snapshot:ITextSnapshot -> VirtualSnapshotSpan 
public function TranslateTo(
    snapshot : ITextSnapshot
) : VirtualSnapshotSpan

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentException

snapshot is for an earlier snapshot.

.NET Framework Security

See Also

Reference

VirtualSnapshotSpan Structure

TranslateTo Overload

Microsoft.VisualStudio.Text Namespace