NormalizedSpanCollection::Union Method (NormalizedSpanCollection^, NormalizedSpanCollection^)

 

Finds the union of two span sets.

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

public:
static NormalizedSpanCollection^ Union(
	NormalizedSpanCollection^ left,
	NormalizedSpanCollection^ right
)

Parameters

left
Type: Microsoft.VisualStudio.Text::NormalizedSpanCollection^

The first span set.

right
Type: Microsoft.VisualStudio.Text::NormalizedSpanCollection^

The second span set.

Return Value

Type: Microsoft.VisualStudio.Text::NormalizedSpanCollection^

The new span set that corresponds to the union of left and right.

Exception Condition
ArgumentNullException

left or right is null.

This operator runs in O(N+M) time where N = left.Count, M = right.Count.

Return to top
Show: