Sdílet prostřednictvím


NormalizedSnapshotSpanCollection.Difference Method

Definition

Computes the difference between two normalized snapshot span collections and normalizes the result.

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

Parameters

left
NormalizedSnapshotSpanCollection

The collection from which to subtract right.

right
NormalizedSnapshotSpanCollection

The collection to subtract from left.

Returns

The normalized set difference.

Exceptions

left or right is null.

The input collections refer to different snapshots.

Applies to