Freigeben über


NormalizedSpanCollection.Union Method

Definition

Finds the union of two span sets.

public:
 static Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ Union(Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ left, Microsoft::VisualStudio::Text::NormalizedSpanCollection ^ right);
public static Microsoft.VisualStudio.Text.NormalizedSpanCollection Union (Microsoft.VisualStudio.Text.NormalizedSpanCollection left, Microsoft.VisualStudio.Text.NormalizedSpanCollection right);
static member Union : Microsoft.VisualStudio.Text.NormalizedSpanCollection * Microsoft.VisualStudio.Text.NormalizedSpanCollection -> Microsoft.VisualStudio.Text.NormalizedSpanCollection
Public Shared Function Union (left As NormalizedSpanCollection, right As NormalizedSpanCollection) As NormalizedSpanCollection

Parameters

left
NormalizedSpanCollection

The first span set.

right
NormalizedSpanCollection

The second span set.

Returns

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

Exceptions

Either left or right is null.

Remarks

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

Applies to