共用方式為


SnapshotSpan.IntersectsWith Method

Definition

Overloads

IntersectsWith(Span)

Determines whether simpleSpan intersects this span. Two spans are considered to intersect if they have positions in common, or if the end of one span coincides with the start of the other span, and neither is empty.

IntersectsWith(SnapshotSpan)

Determines whether snapshotSpan intersects this span. Two spans are considered to intersect if they have positions in common, or the end of one span coincides with the start of the other span, and neither is empty.

IntersectsWith(Span)

Determines whether simpleSpan intersects this span. Two spans are considered to intersect if they have positions in common, or if the end of one span coincides with the start of the other span, and neither is empty.

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

Parameters

simpleSpan
Span

The span to check.

Returns

true if the spans intersect, otherwise false.

Remarks

Two spans intersect if they have positions in common, or if the end of one span coincides with the start of the other span, and neither is empty.

Applies to

IntersectsWith(SnapshotSpan)

Determines whether snapshotSpan intersects this span. Two spans are considered to intersect if they have positions in common, or the end of one span coincides with the start of the other span, and neither is empty.

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

Parameters

snapshotSpan
SnapshotSpan

The span to check.

Returns

true if the spans intersect, otherwise false.

Remarks

Two spans intersect if they have positions in common, or if the end of one span coincides with the start of the other span, and neither is empty.

Applies to