VirtualSnapshotSpan.IntersectsWith(VirtualSnapshotSpan) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.