IProjectionSnapshot::MapToSourceSnapshots Method (Span)
Visual Studio 2015
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.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
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.
Show: