Share via


TextRange.OverlapsWith(TextRange) Method

Definition

Determines whether range overlaps this range. Two ranges are considered to overlap if they have positions in common and are not empty. Empty ranges do not overlap with any other range.

public bool OverlapsWith (Microsoft.VisualStudio.Extensibility.Editor.TextRange range);
member this.OverlapsWith : Microsoft.VisualStudio.Extensibility.Editor.TextRange -> bool
Public Function OverlapsWith (range As TextRange) As Boolean

Parameters

range
TextRange

The range to check for overlap.

Returns

true if the ranges overlap, otherwise false.

Applies to