NormalizedSnapshotSpanCollection::OverlapsWith Method (NormalizedSnapshotSpanCollection^)

 

Determines whether this normalized snapshot span collection overlaps with another collection.

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

public:
bool OverlapsWith(
	NormalizedSnapshotSpanCollection^ set
)

Parameters

set
Type: Microsoft.VisualStudio.Text::NormalizedSnapshotSpanCollection^

The normalized snapshot span collection.

Return Value

Type: System::Boolean

true if the collections refer to the same snapshot and their spans overlap, otherwise false.

Exception Condition
ArgumentNullException

set is null.

ArgumentException

The collections refer to different snapshots.

Return to top
Show: