IMappingSpan::GetSpans Method (ITextSnapshot^)
Visual Studio 2015
Maps the span to a particular ITextSnapshot.
Assembly: Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)
Parameters
- targetSnapshot
-
Type:
Microsoft.VisualStudio.Text::ITextSnapshot^
The ITextSnapshot to which to map the span.
Return Value
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^The possibly empty collection of spans in the targetSnapshot to which the span maps.
| Exception | Condition |
|---|---|
| ArgumentNullException | targetSnapshot is null. |
Show: