Freigeben über


NormalizedSnapshotSpanCollection.OverlapsWith-Methode (NormalizedSnapshotSpanCollection)

Bestimmt, ob diese normalisierte Auflistung von Momentaufnahmespannen überschneidet sich mit einer anderen Auflistung.

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

Syntax

'Declaration
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

Parameter

Rückgabewert

Typ: Boolean
true , wenn die Auflistungen auf die gleiche Momentaufnahme verweisen und eine Überlappung zwischen den Spannen besteht, andernfalls false.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

set ist nullein Nullverweis (Nothing in Visual Basic).

ArgumentException

Die Auflistungen verweisen unterschiedliche Momentaufnahmen an.

.NET Framework-Sicherheit

Siehe auch

Referenz

NormalizedSnapshotSpanCollection Klasse

OverlapsWith-Überladung

Microsoft.VisualStudio.Text-Namespace