NormalizedSpanCollection Constructor (IEnumerable<Span>^)

 

Initializes a new instance of NormalizedSpanCollection that contains the specified list of spans.

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

public:
NormalizedSpanCollection(
	IEnumerable<Span>^ spans
)

Parameters

spans
Type: System.Collections.Generic::IEnumerable<Span>^

The spans to be added.

Exception Condition
ArgumentNullException

spans is null.

The list of spans is sorted and normalized. (Overlapping and adjoining spans will be combined.) This constructor runs in O(N log N) time, where N = spans.Count.

Return to top
Show: