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