VirtualSnapshotSpan::OverlapsWith Method (VirtualSnapshotSpan)

 

Determines whether the specified span overlaps this span.

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

public:
bool OverlapsWith(
	VirtualSnapshotSpan virtualSpan
)

Parameters

virtualSpan
Type: Microsoft.VisualStudio.Text::VirtualSnapshotSpan

The virtual span.

Return Value

Type: System::Boolean

true if the spans overlap, otherwise false.

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

Return to top
Show: