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
difference
Type: Microsoft.VisualStudio.Text.Differencing.DifferenceThe difference.
target
Type: Microsoft.VisualStudio.Text.ITextSnapshotThe target.
Return Value
Type: Microsoft.VisualStudio.Text.SnapshotSpan
A snapshot span that gives the extent of the difference.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.