NormalizedSnapshotSpanCollection::Intersection Method (NormalizedSnapshotSpanCollection^, NormalizedSnapshotSpanCollection^)

 

Calculates the intersection 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^ Intersection(
	NormalizedSnapshotSpanCollection^ left,
	NormalizedSnapshotSpanCollection^ right
)

Return Value

Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

The normalized set of intersecting spans.

Exception Condition
ArgumentNullException

left or right is null.

ArgumentException

The collections refer to different snapshots.

Return to top
Show: