Udostępnij za pośrednictwem


NormalizedSnapshotSpanCollection.OverlapsWith Method

Definition

Overloads

OverlapsWith(NormalizedSnapshotSpanCollection)

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

OverlapsWith(SnapshotSpan)

Determines whether this collection overlaps with a snapshot span.

OverlapsWith(NormalizedSnapshotSpanCollection)

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

public:
 bool OverlapsWith(Microsoft::VisualStudio::Text::NormalizedSnapshotSpanCollection ^ set);
public bool OverlapsWith (Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection set);
member this.OverlapsWith : Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection -> bool
Public Function OverlapsWith (set As NormalizedSnapshotSpanCollection) As Boolean

Parameters

set
NormalizedSnapshotSpanCollection

The collection.

Returns

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

Exceptions

set is null.

The collections refer to different snapshots.

Applies to

OverlapsWith(SnapshotSpan)

Determines whether this collection overlaps with a snapshot span.

public:
 bool OverlapsWith(Microsoft::VisualStudio::Text::SnapshotSpan span);
bool OverlapsWith(Microsoft::VisualStudio::Text::SnapshotSpan span);
public bool OverlapsWith (Microsoft.VisualStudio.Text.SnapshotSpan span);
member this.OverlapsWith : Microsoft.VisualStudio.Text.SnapshotSpan -> bool
Public Function OverlapsWith (span As SnapshotSpan) As Boolean

Parameters

span
SnapshotSpan

The snapshot span to test.

Returns

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

Exceptions

The collection and the span refer to different snapshots.

Applies to