SnapshotSpan.OverlapsWith 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.
Overloads
OverlapsWith(SnapshotSpan) |
Determines whether |
OverlapsWith(Span) |
Determines whether |
OverlapsWith(SnapshotSpan)
Determines whether snapshotSpan
overlaps this span.
Two spans are considered to overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.
public:
bool OverlapsWith(Microsoft::VisualStudio::Text::SnapshotSpan snapshotSpan);
bool OverlapsWith(Microsoft::VisualStudio::Text::SnapshotSpan snapshotSpan);
public bool OverlapsWith (Microsoft.VisualStudio.Text.SnapshotSpan snapshotSpan);
member this.OverlapsWith : Microsoft.VisualStudio.Text.SnapshotSpan -> bool
Public Function OverlapsWith (snapshotSpan As SnapshotSpan) As Boolean
Parameters
- snapshotSpan
- SnapshotSpan
The span to check for overlap.
Returns
true
if the spans overlap, otherwise false
.
Remarks
Two spans overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.
Applies to
OverlapsWith(Span)
Determines whether simpleSpan
overlaps this span. Two spans are considered to overlap if they have positions in common and are not empty.
Empty spans do not overlap with any other span.
public:
bool OverlapsWith(Microsoft::VisualStudio::Text::Span simpleSpan);
public:
bool OverlapsWith(Microsoft::VisualStudio::Text::Span simpleSpan);
bool OverlapsWith(Microsoft::VisualStudio::Text::Span simpleSpan);
public bool OverlapsWith (Microsoft.VisualStudio.Text.Span simpleSpan);
member this.OverlapsWith : Microsoft.VisualStudio.Text.Span -> bool
Public Function OverlapsWith (simpleSpan As Span) As Boolean
Parameters
- simpleSpan
- Span
The span to check.
Returns
true
if the spans overlap, otherwise false
.
Remarks
Two spans overlap if they have positions in common and are not empty. Empty spans do not overlap with any other span.