Partilhar via


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)

Syntax

'Declaração
Public Function OverlapsWith ( _
    set As NormalizedSnapshotSpanCollection _
) As Boolean
public bool OverlapsWith(
    NormalizedSnapshotSpanCollection set
)
public:
bool OverlapsWith(
    NormalizedSnapshotSpanCollection^ set
)
member OverlapsWith : 
        set:NormalizedSnapshotSpanCollection -> bool 
public function OverlapsWith(
    set : NormalizedSnapshotSpanCollection
) : boolean

Parameters

Return Value

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

Exceptions

Exception Condition
ArgumentNullException

set is nulla null reference (Nothing in Visual Basic).

ArgumentException

The collections refer to different snapshots.

.NET Framework Security

See Also

Reference

NormalizedSnapshotSpanCollection Class

OverlapsWith Overload

Microsoft.VisualStudio.Text Namespace