IMappingSpan::GetSpans Method (ITextBuffer^)

 

Maps the span to a particular ITextBuffer.

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

NormalizedSnapshotSpanCollection^ GetSpans(
	ITextBuffer^ targetBuffer
)

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.

Return to top
Show: