VirtualSnapshotSpan::IntersectsWith Method (VirtualSnapshotSpan)

 

Determines whether the specified virtual span intersects this span.

Namespace:   Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Logic (in Microsoft.VisualStudio.Text.Logic.dll)

public:
bool IntersectsWith(
	VirtualSnapshotSpan virtualSpan
)

Parameters

virtualSpan
Type: Microsoft.VisualStudio.Text::VirtualSnapshotSpan

The virtual span to check.

Return Value

Type: System::Boolean

true if the spans intersect, otherwise false.

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

Return to top
Show: