Partilhar via


VirtualSnapshotSpan.IntersectsWith(VirtualSnapshotSpan) Method

Definition

Determines whether virtualSpan 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.

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

Parameters

virtualSpan
VirtualSnapshotSpan

The virtual 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.

Applies to