NormalizedSnapshotSpanCollection::Overlap Method (NormalizedSnapshotSpanCollection^, NormalizedSnapshotSpanCollection^)

 

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

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

public:
static NormalizedSnapshotSpanCollection^ Overlap(
	NormalizedSnapshotSpanCollection^ left,
	NormalizedSnapshotSpanCollection^ right
)

Return Value

Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

The normalized set of overlapping snapshot spans.

Exception Condition
ArgumentNullException

left or right is null.

ArgumentException

The input collections refer to different snapshots.

An empty snapshot span never overlaps any other snapshot span.

Return to top
Show: