次の方法で共有


SnapshotSpan.OverlapsWith Method

Definition

Overloads

OverlapsWith(SnapshotSpan)

Determines whether snapshotSpan overlaps this span. Two spans are considered to overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.

OverlapsWith(Span)

Determines whether simpleSpan overlaps this span. Two spans are considered to overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.

OverlapsWith(SnapshotSpan)

Determines whether snapshotSpan overlaps this span. Two spans are considered to overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.

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

Parameters

snapshotSpan
SnapshotSpan

The span to check for overlap.

Returns

true if the spans overlap, otherwise false.

Remarks

Two spans overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.

Applies to

OverlapsWith(Span)

Determines whether simpleSpan overlaps this span. Two spans are considered to overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.

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

Parameters

simpleSpan
Span

The span to check.

Returns

true if the spans overlap, otherwise false.

Remarks

Two spans overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.

Applies to