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)

ReadOnlyCollection<SnapshotSpan>^ MapToSourceSnapshots(
	Span span
)

Parameters

span
Type: Microsoft.VisualStudio.Text::Span

The span in the projection snapshot.

Return Value

Type: System.Collections.ObjectModel::ReadOnlyCollection<SnapshotSpan>^

A non-empty list of snapshot spans.

Exception Condition
ArgumentOutOfRangeException

span is not valid for this buffer.

If a null span occurs on a source span seam, it may map to more than one null source span.

Return to top
Show: