IMappingSpan::GetSpans Method (ITextSnapshot^)

 

Maps the span to a particular ITextSnapshot.

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

NormalizedSnapshotSpanCollection^ GetSpans(
	ITextSnapshot^ targetSnapshot
)

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.

Return to top
Show: