Partilhar via


NormalizedSnapshotSpanCollection.Overlap Method

Definition

Computes the overlap of two normalized snapshot span collections and normalizes the result.

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

Parameters

Returns

The normalized set of overlapping snapshot spans.

Exceptions

left or right is null.

The input collections refer to different snapshots.

Remarks

Empty SnapshotSpans never overlap any other SnapshotSpan.

Applies to