Freigeben über


ISnapshotDifference.MapToSnapshot Method (Difference, ITextSnapshot)

Gets the extent of the difference in the specified snapshot.

Namespace:  Microsoft.VisualStudio.Text.Differencing
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

Syntax

'Declaration
Function MapToSnapshot ( _
    difference As Difference, _
    target As ITextSnapshot _
) As SnapshotSpan
SnapshotSpan MapToSnapshot(
    Difference difference,
    ITextSnapshot target
)
SnapshotSpan MapToSnapshot(
    Difference^ difference, 
    ITextSnapshot^ target
)
abstract MapToSnapshot : 
        difference:Difference * 
        target:ITextSnapshot -> SnapshotSpan
function MapToSnapshot(
    difference : Difference, 
    target : ITextSnapshot
) : SnapshotSpan

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.SnapshotSpan
A snapshot span that gives the extent of the difference.

.NET Framework Security

See Also

Reference

ISnapshotDifference Interface

MapToSnapshot Overload

Microsoft.VisualStudio.Text.Differencing Namespace