Compartilhar via


IProjectionSnapshot.MapToSourceSnapshots Method (Span)

Maps a span of the current projection snapshot to a list of snapshot spans belonging to source snapshots. The resulting spans will be ordered by the order of their appearance in the projection.

Namespace:  Microsoft.VisualStudio.Text.Projection
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaração
Function MapToSourceSnapshots ( _
    span As Span _
) As ReadOnlyCollection(Of SnapshotSpan)
ReadOnlyCollection<SnapshotSpan> MapToSourceSnapshots(
    Span span
)
ReadOnlyCollection<SnapshotSpan>^ MapToSourceSnapshots(
    Span span
)
abstract MapToSourceSnapshots : 
        span:Span -> ReadOnlyCollection<SnapshotSpan> 
function MapToSourceSnapshots(
    span : Span
) : ReadOnlyCollection<SnapshotSpan>

Parameters

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<SnapshotSpan>
A non-empty list of snapshot spans.

Exceptions

Exception Condition
ArgumentOutOfRangeException

span is not valid for this buffer.

Remarks

If a nulla null reference (Nothing in Visual Basic) span occurs on a source span seam, it may map to more than one nulla null reference (Nothing in Visual Basic) source span.

.NET Framework Security

See Also

Reference

IProjectionSnapshot Interface

MapToSourceSnapshots Overload

Microsoft.VisualStudio.Text.Projection Namespace