Sdílet prostřednictvím


NormalizedSnapshotSpanCollection.IntersectsWith Method

Definition

Overloads

IntersectsWith(NormalizedSnapshotSpanCollection)

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

IntersectsWith(SnapshotSpan)

Determines whether this collection overlaps with a snapshot span.

IntersectsWith(NormalizedSnapshotSpanCollection)

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

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

Parameters

set
NormalizedSnapshotSpanCollection

The colllection.

Returns

true if the collections intersect, otherwise false.

Exceptions

set is null.

The input collections refer to different snapshots.

Applies to

IntersectsWith(SnapshotSpan)

Determines whether this collection overlaps with a snapshot span.

public:
 bool IntersectsWith(Microsoft::VisualStudio::Text::SnapshotSpan span);
bool IntersectsWith(Microsoft::VisualStudio::Text::SnapshotSpan span);
public bool IntersectsWith (Microsoft.VisualStudio.Text.SnapshotSpan span);
member this.IntersectsWith : Microsoft.VisualStudio.Text.SnapshotSpan -> bool
Public Function IntersectsWith (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