Udostępnij za pośrednictwem


NormalizedSnapshotSpanCollection.Union Method

Definition

Computes the union of two snapshot span collections and normalizes the result.

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

Parameters

Returns

The normalized union of the input collections.

Exceptions

left or right is null.

The collections refer to different snapshots.

Applies to