Freigeben über


NormalizedSpanCollection.Union Method

Finds the union of two span sets.

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

Syntax

'Declaration
Public Shared Function Union ( _
    left As NormalizedSpanCollection, _
    right As NormalizedSpanCollection _
) As NormalizedSpanCollection
public static NormalizedSpanCollection Union(
    NormalizedSpanCollection left,
    NormalizedSpanCollection right
)
public:
static NormalizedSpanCollection^ Union(
    NormalizedSpanCollection^ left, 
    NormalizedSpanCollection^ right
)
static member Union : 
        left:NormalizedSpanCollection * 
        right:NormalizedSpanCollection -> NormalizedSpanCollection 
public static function Union(
    left : NormalizedSpanCollection, 
    right : NormalizedSpanCollection
) : NormalizedSpanCollection

Parameters

Return Value

Type: Microsoft.VisualStudio.Text.NormalizedSpanCollection
The new span set that corresponds to the union of left and right.

Exceptions

Exception Condition
ArgumentNullException

left or right is null.

Remarks

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

.NET Framework Security

See Also

Reference

NormalizedSpanCollection Class

Microsoft.VisualStudio.Text Namespace